Exemplo n.º 1
0
 private static bool ValidateAndSelect(ref DataGridView dgv, DataGridViewCellMouseEventArgs e)
 {
     if (null == e || 0 > e.RowIndex || 0 > e.ColumnIndex || dgv.RowCount <= e.RowIndex || dgv.ColumnCount <= e.ColumnIndex)
     {
         return(false);
     }
     DgvHelpers.SelectCell(ref dgv, e.RowIndex, e.ColumnIndex);
     return(true);
 }