We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon