AD
Administrator
Syncfusion Team
December 10, 2007 05:45 PM UTC
To have a column of buttons in a GridDataBoundGrid, you need to set the CellType for the GridBoundColumn associated with the particular column.
If you have explicitly created GridBoundColumns (either from code or from the designer), you would use code like:
this.gridDataBoundGrid1.GridBoundColumns["Button1"].StyleInfo.CellType = "PushButton";
this.gridDataBoundGrid1.GridBoundColumns["Button1"].StyleInfo.Description = "Push Me";
If you have not explicitly added GridBoundColumns to your grid, then you need to use code like this.
this.gridDataBoundGrid1.Binder.InternalColumns["Button1"].StyleInfo.CellType = "PushButton";
this.gridDataBoundGrid1.Binder.InternalColumns["Button1"].StyleInfo.Description = "Push Me";