Button Mouseup
Hi,
I have a button as an editor for a cell in the grid. I would like a certain action performed when the on mouse up. I have a code sample, but it does not seem to fire on mouse up.
Here is the code I have.
public override StopEditReason EditCell(IGridEditorService service, Cell cell, StartEditReason reason)
{
System.Windows.Forms.Button button = new System.Windows.Forms.Button();
button.BackColor = Color.Salmon;
button.MouseUp += delegate
{
if (this.EditingCell.VisibleBounds.Contains(cell.Row.Grid.PointToClient(System.Windows.Forms.Cursor.Position)))
{
//Do something
System.Diagnostics.Debug.WriteLine("Test");
}
service.CloseCellControl(StopEditReason.UserStop);
};
return StopEditReason.Undefined;
}
Can you tell me what is wrong ?
Thanks,
Deepak
-
Never mind, I figured it out by reading the forums. Thanks.
0
Please sign in to leave a comment.
Comments
1 comment