This example is part of a larger example available in Walkthrough: Validating Data in the Windows Forms Data Grid View Control.Se il gestore dell'evento Cell Validating rileva che il valore è una stringa vuota, il controllo Data Grid View impedisce all'utente di uscire dalla cella fino a quando non immette una stringa non vuota. The selection scope is based on the property to allow a user to select multiple elements in the Data Grid View control and perform an operation on all the selected elements.For example, the user could select multiple cells and then right-click a selected cell to display a shortcut menu that displays a set of tasks to perform on the selected cells.Please suggest on what event and how can i do such validation. property is set to true, multiple elements (cells, rows, or columns) can be selected in the Data Grid View control.
Consecutive elements can be selected by clicking the first element to select and then, while holding down the SHIFT key, clicking the last element to select.
Further, let’s say that you’d like to know as soon as the user has made a change to their selection.