How can I handle the mouse click event in the UltraGrid cell which in edit mode ?
Hello wangchanel,
You could try the following approach for your scenario:
private void ultraGrid1_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e) { if (e.Cell.IsInEditMode) { //Here you could perform the needed actions } }
private void ultraGrid1_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
{
if (e.Cell.IsInEditMode)
//Here you could perform the needed actions
}
Please do not hesitate to ask if something comes up.
Hello Boris
Thank for your reply. I know that we can handle the ultraGrid1_ClickCell event ,but I can not get more information of the mouse state, such as mouse click button(right or left), mouse click postion . So i want to handle the ultraGrid1_MouseClick event to get the MouseEventArgs.Has another method to get the mouse information when mouse click in the UltraGrid cell which in edit mode?
Please try the sample I attached in this post and see if it fits your needs.
Please do not hesitate to contact us if you need any additional assistance.
Hello Boris,
I have tried the sample,but I also can not handle the ultraGrid1_MouseDown when mouse click in the UltraGrid cell which in edit mode.
Thank you for your patience and for contacting me again.
Please review the sample I attached.
Hi Boris,
Can you please share the solution in vb.net?
I tried to convert the code from C# to VB but couldn't convert it completely.
There are samples in both C# and VB here.