hi
I design one form of registration in that i use two DateTimePicker one for date and second for time.when i save the request in database I use datetime datatype for date and nvarchar for time.it store date and time correctly.but when i accept data from database into datagridview it shows date correctly but at reqtime it shows date plus time i want it only show time.
pl help
thanks in advance
Accepting date from datagridview to textbox and accepting time from database to datagridview
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

pradeep kumar72 reputationPosted Dec 9, 2012, 9:25 AM EST
datagridview.columns[0].defaultcellstyle.format="Give ur Format here"
this.datetime.DefultcellStyle=datgridviewcellstyle;