The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
Is there an equivalent to the SelectCellsMouseButtonsMask property like in the regular grid control for the GridGroupingControl or should I handle the mouse events specifically??
Jason Southgate.
Basically I am already using
linkMonitorGrid.TableControl.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
to stop the row being unselected when the context menu pops up, but I would like to allow the TableControlCellClick event to still fire when right-clicking the GroupingGridControl.
Many thanks.
ADAdministrator Syncfusion Team December 29, 2004 08:52 AM UTC
TableCellClick will not be raised on the right-click if you set the SelectCellsMouseButtonsMask to ignore it.
You can try to catch the TableControlMouseDown which will be raised for the right click even if you set the selections to ignore the right-click.
If you are using the new row selection support in 3.0, another option might be to not set the SelectCellsMouseButtonsMask, but instead handle the SelectedRecordsChanging event and cancel it if the selections are changing as a result of a right-click.
private void grd_SelectedRecordsChanging(object sender, SelectedRecordsChangedEventArgs e)
{
if(Control.MouseButtons == MouseButtons.Right)
e.Cancel = true;
}
JSJason SouthgateDecember 29, 2004 09:44 AM UTC
Hi Clay,
Well we are not using 3.0 yet, so I''ll take the first approach! I can see the later method is conceptually clearer however.
Thanks again.
Jason.