dtp_from.Value = grid_prdt.Item(5, i).Value
i hve the above line which gives me null exception
Printable View
dtp_from.Value = grid_prdt.Item(5, i).Value
i hve the above line which gives me null exception
Need much much more info than that.
Is there a value inside that cell of the GridView?
I guess you are trying to store a NULL value inside a DateTimePicker - that can be tricky indeed. Have a look at these two links :
http://nodedangles.wordpress.com/201...er-null-value/
http://www.dreamincode.net/forums/to...icker-control/
Please, next time try to provide more details with your questions.