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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

52900 Dec 5,2006 09:15 PM UTC Dec 6,2006 04:34 AM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 5, 2006 09:15 PM UTC

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

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.

Warning Icon 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.Close Icon

;