((BoundField)datagrid.Columns[0]).DataField = "TestID";
BoundField col1 = datagrid.Columns[0] as BoundField; col1.DataField = "TestID";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)