GridDataBoundGrid / Design

I fill the GDBG per code like this:

this.gridDataBoundGridBonus.DataSource = dt;
Syncfusion.Windows.Forms.Grid.GridModelDataBinder binder = this.gridDataBoundGridBonus.Binder;

//
// gridBoundColumnBonusNumber
//
GridBoundColumn gridBoundColumnBonusNumber = binder.InternalColumns["Bonus_number"];
gridBoundColumnBonusNumber.HeaderText = "Nummer";
//gridBoundColumnBonusNumber.MappingName = "Bonus_number";
gridBoundColumnBonusNumber.StyleInfo.CellValueType = typeof(string);
//this.gridDataBoundGridBonus.GridBoundColumns.Add(gridBoundColumnBonusNumber);

Like this I'm adding 5 colums to the grid. But when the grid is loaded, there is a cell on the right side of each row. How can I avoid the grid drawing these cells?

grid.zip

1 Reply

CG Christoph Gasser October 23, 2007 03:02 PM UTC

Solved. Now it's working. Nothin changed on the code. Strange ... I'll keep an eye on it.

Loader.
Up arrow icon