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. Image for the cookie policy date

Get the Column values

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


Regards
Tannnearu

1 Reply

AD Administrator Syncfusion Team November 23, 2006 01:03 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon