'How my column is defineWith GridMain.DisplayLayout.Bands(0) .Columns("Activer").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox .Columns("Activer").DataType = Type.GetType("System.Boolean") .Columns("Activer").CellActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit .Columns("Activer").CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditEnd With
'Here is my grid eventPrivate Sub GridMain_ClickCell( sender, e) Handles GridMain.ClickCell GridMain.UpdateData() lbltext_Info.Text = e.Cell.Value.ToStringEnd Sub
When i click in my checkbox grid:First click, the return value is not goodSecond and other click, the return value is good
What is my problem?
Thank all works good with cellchange!
I'm guessing that this is probably a timing issue of some kind. The Value property does not get changed until after the click event fires.
If you want to update a label based on the current value of a CheckBox field in the grid, then I recommend that you use the CellChange event of the grid. You have to use the Text property of the cell instead of the Value, but CellChange is better because it will also fire if the user changes the CheckBox via the keyboard instead of the mouse.