Hai friends,
Im creating one application in that input fields are
Date:(jquery date picker)
from place:(text)
to place:(text)
add(button)
after added the details ll show on Grid view,
My requirement is now disble the date viewing of date picker already appeared on Griview
how to do?
Loading
ThomasPosted Apr 30, 2013, 11:02 AM
1. If you are populating the date when they click Add and then you want to disable the datetimepicker.
In the code for the Add button include the line
MyDatePicker.Enabled = false;
2. If you want to disable the datetimepicker when the datagridview loads if it is already populated.
In this scenario you want to loop through your datagridview (either foreach or for loop depending on if you are doing anything else). Then in the loop, do an if check on the date cell of the datagridview to see if it is populated. If it is then use the same line as above.
I hope this helps.