Link to home
Start Free TrialLog in
Avatar of minglelinch
minglelinch

asked on

load telerik:RadDatePicker

When I load telerik:RadDatePicker with
            txtIDate.SelectedDate.Value = dsClerk.Tables["Incident"].Rows[0]["dateI"];

I get the error -
Property or indexer 'system.Nullable<System.DateTime>.Value' cannot be assigned to -- it is read only.

I changed a property like EnableTyping="false", it's not working and it is actually not what iI want. Please help.
Avatar of ajb2222
ajb2222

the datacolumn is set to readonly

dsClerk.Tables["Incident"].Columns["dateI"].ReadOnly = false
oops my bad I read the statement backwords.  

the txtIDate.SelectedDate.Value property is read only.

I think you just set the value of the txtIDate.

txtIDate.Value = dsClerk.Tables["Incident"].Rows[0]["dateI"];
ASKER CERTIFIED SOLUTION
Avatar of TheMozz
TheMozz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of minglelinch

ASKER

Thank you. It works.
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.