Hi, I want to set DateTime value for my radGridview's DataColumn. I tried doing it in the AddingNewDataItem event of the Grid but getting error:
Cannot implicitly convert type 'System.DateTime' to 'Telerik.Windows.Controls.GridViewDataColumn
This is the AddingNewDataItem event handler:
private void grdProductGrid_AddingNewDataItem_1(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
{
e.NewObject =new Product();
Date = System.DateTime.Today;
}
Date is the name of my column.
Cannot implicitly convert type 'System.DateTime' to 'Telerik.Windows.Controls.GridViewDataColumn
This is the AddingNewDataItem event handler:
private void grdProductGrid_AddingNewDataItem_1(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
{
e.NewObject =new Product();
Date = System.DateTime.Today;
}
Date is the name of my column.