グリッド内の複数のセルを選択しようとしている Windows フォーム アプリケーションに syncfusion グリッド コントロールを使用しています。右クリックすると、選択が残るはずです。しかし、選択を維持することはできません
private void theGrid_MouseDown(object sender, MouseEventArgs e)
{
theGrid.ListBoxSelectionMode = SelectionMode.None;
this.theGrid.AllowSelection = GridSelectionFlags.Any;
if (e.Button == MouseButtons.Right)
{
theGrid.ContextMenuStrip = contextMenuStrip1;
contextMenuStrip1.Visible = true;
}
else
{
contextMenuStrip1.Visible = false;
}
}