Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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.