Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
1367 | Oct 22,2002 01:11 PM UTC | Oct 22,2002 07:13 PM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
//class member... bool skipDeactivate = false; private void gridControl1_CurrentCellDeactivating(object sender, System.ComponentModel.CancelEventArgs e) { if(Control.MouseButtons == MouseButtons.Right || skipDeactivate) { skipDeactivate = ! skipDeactivate; e.Cancel = true; } }
bool skipActivate = false;
private void gridControl1_CurrentCellActivating(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellActivatingEventArgs e)
{
if(Control.MouseButtons == MouseButtons.Right || skipActivate)
{
skipActivate = ! skipActivate;
e.Cancel = true;
}
}
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.