Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2715
checkbox column
posted

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!

Parents
  • 17259
    Offline posted

    What do you mean by "doesn't activate"? Is it disabled or just the event doesn't fire?

    If it is disabled, that depends if this value is writable or not in the data source.

    If the event doesn't fire, AfterCellUpdate is fired only after the cell exit edit mode (for example, when you set the focus to another cell). For an immediate event, use the CellChange event but look in the Text property since the Value is the old one.

Reply Children