G
GoodMorningSky
I want to add new DataColumn to existing DataTable object as first column
shown in the datagrid.
(like
DataColumn dc = new DataColumn("Target");
dc.DataType = typeof(string);
dc.DefaultValue = tbl.TableName;
tbl.Columns.Add(dc);
)
Whenever I add it, the column is shown at the end.
How can I add it as first column (or with index)?
shown in the datagrid.
(like
DataColumn dc = new DataColumn("Target");
dc.DataType = typeof(string);
dc.DefaultValue = tbl.TableName;
tbl.Columns.Add(dc);
)
Whenever I add it, the column is shown at the end.
How can I add it as first column (or with index)?