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.
Up arrow icon