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

column collection


Hi,

How do I get a collection of columns or column names from a databoundgrid? Thanks!

1 Reply

HA haneefm Syncfusion Team June 25, 2007 06:14 PM UTC

Hi Coder12345,

You can get the bounded column collection by using the Binder.InternalColumn property. Below is a code snippet

foreach(GridBoundColumn c in gridDataBoundGrid3.Binder.InternalColumns)
{
Console.WriteLine(c.MappingName);
}

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon