We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

52900 Dec 5,2006 04:15 PM Dec 5,2006 11:34 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 5, 2006 04:15 PM

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?


Administrator [Syncfusion]
Replied On December 5, 2006 11:34 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;