New to Telerik UI for WinForms? Start a free 30-day trial
Selecting Cells Programmatically
Updated over 6 months ago
Single Cell Select
You can use the following method to select a cell in the code:
C#
this.radVirtualGrid1.SelectCell(5, 2);
Multiple Cells Select
You can select multiple cells with code as well. This can be achieved by using the BeginSelection and ExtendCurrentRegion methods. For example:
C#
radVirtualGrid1.VirtualGridElement.Selection.BeginSelection(3, 1, radVirtualGrid1.MasterViewInfo, true);
radVirtualGrid1.VirtualGridElement.Selection.ExtendCurrentRegion(6, 3);