Hello,
i have implemented a method that prevent the selections of cells in the first 3 columns. this method works, but it is extreme slowly. This is my method. Is there a better way to prevent selection?
i have implemented a method that prevent the selections of cells in the first 3 columns. this method works, but it is extreme slowly. This is my method. Is there a better way to prevent selection?
private void Event_SelectionChanged(object sender, EventArgs e) { GridViewCellInfo[] cells = (from GridViewCellInfo entry in this.SelectedCells where entry.ColumnInfo.Index < CurveContentGridView.FIRST_DATACOLUMN_INDEX || entry.RowInfo.Index == -1 select entry).ToArray(); for (int i = 0; i < cells.Length; i++) { cells[i].IsSelected = false; } }