How to display time in datagridview
I have use Genneric datagridview.
I can display calendar using calendar column
But i want 2 display only time in datagridview
Is there is any soln?
Plz help me out!
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
hari KishanPosted Dec 28, 2010, 1:09 AM
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/c2ea4bd6-1d15-4946-94c2-f423248b24b5/
Pravin GhadgePosted Dec 27, 2010, 8:47 AM
I have use ur code
DGVSearch.Columns[0].DefaultCellStyle ="HH:mm:ss";
bt it giving me foll. err:
Cannot implicitly convert type 'string' to 'System.Windows.Forms.DataGridViewCellStyle'
hari KishanPosted Dec 27, 2010, 8:24 AM
gr.Columns["ColumnIndex"].DefaultCellStyle = "HH:mm:ss"
Date column of table should be bound to this column.