Home Forums WinForms controls Xceed Grid for WinForms End Checkbox Edit on MouseUp

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17498 |

    Is it possible to end the edit of a checkbox on the MouseUp instead of waiting until a row change?

    I have a group created on the Checkbox with group totals.  I want to finish the edit as soon as the MouseUp occurs so group totals are updated and the row moves to the new group.

     

    Imported from legacy forums. Posted by Morgan (had 1239 views)

    User (Old forums)
    Member
    Post count: 23064

    I have bypassed this problem so:
    1. I install property of column ReadOnly = True
    2. I process event of cell Click

    Private Sub CheckBoxCell_Click (sender as object, e as EventArgs)
    sender. Value = Not Sender. Value
    End Sub

    Imported from legacy forums. Posted by Артем (had 393 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks, a simple solution that works.  I would not have thought of this.

    Imported from legacy forums. Posted by Morgan (had 425 views)

    User (Old forums)
    Member
    Post count: 23064

    Is there a way if finding which row the cell is in?

    Imported from legacy forums. Posted by Morgan (had 298 views)

    User (Old forums)
    Member
    Post count: 23064

    [quote user=”Morgan”]Is there a way if finding which row the cell is in?
    [/quote]

    I found the answer, but thanks anyway.

    Dim Cell As Cell = CType(sender, Cell)
    Dim sTemp As String = Cell.ParentRow.Cells(“CellName”).Value.ToString

    Imported from legacy forums. Posted by Morgan (had 1557 views)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.