load only a specified column from a multiple column DataSet table into a GDBG.

Hello,
Please help.
I want to load only a specified column from a multiple column DataSet table into a GDBG. How do I do this?


1 Reply

AD Administrator Syncfusion Team December 6, 2006 04:34 AM UTC

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.zip

Best Regards,
Haneef

Loader.
Up arrow icon