This event is raised after the selection in a worksheet has changed. For example:

void InitWorksheet()
{
  var sheet = gridControl.CurrentWorksheet;
  sheet.SelectionRangeChanged += sheet_SelectionRangeChanged;
}

void sheet_SelectionRangeChanged(object sender, RangeEventArgs args)
{
  MessageBox.Show("Selection changed: " + args.Range.ToAddress());
}

Remarks

This event is not raised while the user is dragging the mouse to change the selection range; it is only raised when the mouse button is released. To receive selection range changes during mouse dragging, use the SelectionRangeChanging event.

Was this article helpful?