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.zipBest Regards,
Haneef