Date in DataGrid
-
I have a BoundColumn which shows a Date.In the Sql server database i have Null value, but in the datagrid i see 1/1/0001 12:00:00 AM .Do you know what the cause might be? If it has any relevance, the datagrid source for the boundcolumn is a LLBLGen Collection. Thank you.
-
I have a BoundColumn which shows a Date.In the Sql server database i have Null value, but in the datagrid i see 1/1/0001 12:00:00 AM .Do you know what the cause might be? If it has any relevance, the datagrid source for the boundcolumn is a LLBLGen Collection. Thank you.
-
You can convert that into date only and then display it in the datagrid.
Best Regards, Apurva Kaushal
K.I'll do it in ItemDataBound. -- modified at 9:29 Tuesday 19th September, 2006
-
I have a BoundColumn which shows a Date.In the Sql server database i have Null value, but in the datagrid i see 1/1/0001 12:00:00 AM .Do you know what the cause might be? If it has any relevance, the datagrid source for the boundcolumn is a LLBLGen Collection. Thank you.
You can change the date format while retriving on the query itself. Like conver as Varchar. Ram