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
2490
ColumnStyle.CheckBox
posted

HI,

 

What is the best practice for edit the checkbox with mouse click ?

 

I use this feature and it works well, but when you click on the cell status changes. I wonder if the status changes only when you click on the little square of the cell.

.style = ColumnStyle.Checkbox

.FilterOperandStyle = FilterOperandStyle.Combo

.CellActivation = Activation.allowedit

.cellclickaction = CellClickAction.EditAndSelectText

 

Private Sub grid_CellChange(sender As Object, e As Infragistics.Win.UltraWinGrid.CellVentArgs) Handles grid.CellChange

     if grid.activecell.column.datatype.name = "Boolean" Then

           grid.performaction(UltraGridAction.ExitEditMode)

     End if

End Sub

Francois.

 

Parents
  • 48586
    Suggested Answer
    posted

    Hello ,

     

    You could handle CellClick event in  order to get the current state of the editor and then to use CellChnage event in order mange the state of the editor. Please see attached sample  and let me know if this is what you are looking for.

     

    Please let me know if you have any  further questions

    112212.zip
Reply Children