I am a beginner with VB.NET WindowsForm, I am using Visual Studio 2010 and need help on Several issues on DateTimePicker on DGV, I already managed to create a DatetimePickerColumn (DTPColumn) on a databound DGV usinghttp://msdn.microsoft.com/en-us/library/7tas5c80.aspx, My first question is how do I load the Dates from my database to the DTPcolumn that was added in dgv without the DTPCell replacing the original date? Please and Thank you.
Share
This might not be the best way of doing it but atleast it works. After you’ve set the datasource you can do this:
This rewrites the column you have the dates in to calendar cells. This will however throw errors if the column with the dates actually aren’t dates. is of course to be changed to the apropriate index. With this there is no need for a manually created column.