Getting dynamic Datagrid
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi one & all I m wirting a code for dynamic DataGrid, in that i have a column of Date. so store procedure is exactly working but in code some what mistake , I have written the code like this myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.DateTime"); myDataColumn.ColumnName = "CreatedOn"; myDataColumn.ReadOnly = false; myDataTable.Columns.Add(myDataColumn); In for loop, i have taken as string noofre = Convert.ToString(dt.Rows[i]["CreatedOn"]); myDataRow["CreatedOn"] = noofre; myDataTable.Rows.Add(myDataRow); But i m getting some problem to retrieve this. So please kindly help me to solve this problem. Regards, Narendra +91 9885179844. Help this content to solve.