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
https://407832.verdetrade-hk.tech/support/
https://407832.verdetrade-hk.tech/support/viewtopic.php?f=24&t=17655
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}");
}
}