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
145
Ultragrid unbound checkbox
posted

Hi,

I've got an ultragrid on a form bound to some data and one unbound boolean(checkbox) column used to select rows. Now, when I select a row I use the CellChange event to do some other things I need to do. The problem I have is that inside the CellChange the checkbox column's value is always false. If I use AfterCellUpdate, I don't get notified right after I click the checkbox which is basically what I need. Any way to achieve it?

Thanks,
Cosmin

Parents
No Data
Reply
  • 37774
    posted

    Cosmin,

    If you don't want to have to commit the value of the cell at that point, you could also check the Value on the editor of the active cell, i.e.:

    bool isChecked = (bool) this.ultraGrid1.ActiveCell.EditorResolved.Value;

    This of course assumes that the current active cell is your checkbox column, but then you wouldn't be having this problem if it wasn't :-)

    -Matt

Children