Hi,
Use the GridBoundColumns property to manage the display columns in a GridDataBoundGrid. Here is a code snippet.
//Clear the All columns bound to grid...
this.gridDataBoundGrid1.GridBoundColumns.Clear();
//Add the new column to display in a grid.
GridBoundColumn EmpName = new GridBoundColumn();
EmpName.MappingName = "ColumnName";
this.gridDataBoundGrid1.GridBoundColumns.Add(EmpName);
this.gridDataBoundGrid1.DataSource = ds.Tables[0];
Here is a sample.
GDBGSingleColumn.zipBest Regards,
Haneef