hi!
I've added a checkbox column to my grid, but i can't change it's value - if i click it nothing happens, the cell doesn't activate. Here's the code :
_locDataSet.Tables[0].Columns.Add("Select", typeof(bool),"false");
LOCValuesGrid.DisplayLayout.Bands[0].Columns[2].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
LOCValuesGrid.AfterCellUpdate += new Infragistics.Win.UltraWinGrid.CellEventHandler(LOCValuesGrid_AfterCellUpdate);
Any ideas?
Thanks!
Ok, so if i want to add an unbound column that will hold a checkbox how should i proceed?
I only need to be able the select rows by checking a checkbox.
Sorry but I'm not using datasets so often.
The grid column is bound to the datatable column. The grid does not care if this column is bound to a database or not. Unbound column is a column that does not exist in the datatable.
I've set it to false like this, nothing fancy:
_locDataSet.Tables[0].Columns["Select"].ReadOnly = false;
p.s. : bound to what ?
Probably the way you set it to false is causing the problem. BTW, this column is considered bound from the grid aspect.
I've debugged, and yes, it's set to true. And if i set it to false, nothing loads in the grid...