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.

Get the Column values

Thread ID:

Created:

Updated:

Platform:

Replies:

52211 Nov 23,2006 07:25 AM Nov 23,2006 08:03 AM Windows Forms 1
loading
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 23, 2006 07:25 AM

HI,
I am using Grid Data Bound Grid. I Get the Column values at runtime. Please resolve the problem ASAP


Regards
Tannnearu

Administrator [Syncfusion]
Replied On November 23, 2006 08:03 AM

Hi Tannearu,

You can use the MappingName propert to get the name of the column in a grid. Here is a code snippet to show this.

private void button1_Click(object sender, System.EventArgs e)
{
for(int i = 0;i< this.gridDataBoundGrid1.Model.ColCount;i++)
{
Console.WriteLine("MappingName : " + this.gridDataBoundGrid1.Binder.InternalColumns[i].MappingName);
Console.WriteLine("HeaderText : " + this.gridDataBoundGrid1.Binder.InternalColumns[i].HeaderText );
}
}

Sample : GDBGReadonlyCells.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.

;