Multi Selection of rows
Posted: Fri Apr 15, 2022 10:38 am
How can I detect which rows are selected in the grid ?
Steema Software - Customer Support Forums
http://216.92.101.67/support/
Code: Select all
//set with:
teeGrid1.Selected.Changed += Selected_Changed;
//example event code
private void Selected_Changed(object sender, EventArgs e)
{
var selection = sender as GridSelection;
if (selection.Column == teeGrid1.Columns[0] && selection.Row != 5)
{
MessageBox.Show($"You've clicked a button on row {selection.Row}");
}
}