Column Name

Hi,

How to get the columnname of the grid with the use of columnindex?

Regards

Leema

1 Reply

AD Administrator Syncfusion Team January 11, 2007 12:04 PM UTC

Hi Leema,

Please try this.

int fieldIndex = this.gridDataBoundGrid1.Binder.ColIndexToField(ColIndex);
Console.WriteLine( this.gridDataBoundGrid1.Binder.InternalColumns[fieldIndex].MappingName );

Best Regards,
Haneef

Loader.
Up arrow icon