how-to-add-new-column-with-value-to-the-existing-datatable

119

how-to-add-new-column-with-value-to-the-existing-datatable -

System.Data.DataColumn newColumn = new System.Data.DataColumn("Foo", typeof(System.String));
newColumn.DefaultValue = "Your DropDownList value";
table.Columns.Add(newColumn);

Comments

Submit
0 Comments