Renato
2015-12-26T09:15:10Z
i try this ....

fGrid.SelectionMode = iGSelectionMode.None; //Default disable user selection

private void Chart_Select(object sender, iGCellClickEventArgs e)
{
...
fGrid.SelectionMode = iGSelectionMode.MultiSimple;

foreach (iGRow ir in fGrid.Rows)
fGrid.Cells[ir.Index, e.ColIndex].Selected = true;

fGrid.SelectionMode = iGSelectionMode.None; //Deselects selected cells !
}


and this ...

fGrid.SelectionMode = iGSelectionMode.MultiSimple;

foreach (iGRow ir in fGrid.Rows)
foreach (iGCol ic in fGrid.Cols)
fGrid.Cells[ir.Index, ic.Index].Selectable = iGBool.False;

Manual -> "Specifies whether the cell can be selected through visual interface.
If this property is set to False, the user cannot select this cell with the mouse or keyboard."

not only the user cannot..

Igor/10Tec
2015-12-28T09:40:43Z
Yes, really - to have the ability to select cells in iGrid (even from code), you need to have the SelectionMode property set to a value different from 'None'. This is done by design - to have consistent look and behavior. For instance, you can't select several cells from code when SelectionMode is set to 'One' (the default setting). If you execute code like this:

foreach (iGRow ir in fGrid.Rows)
  fGrid.Cells[ir.Index, 1].Selected = true;

, only the last cell in the 2nd column will be selected.

To solve your problem, your first code snippet should look like this:

fGrid.SelectionMode = iGSelectionMode.MultiExtended;

private void Chart_Select(object sender, iGCellClickEventArgs e)
{	
...
foreach (iGRow ir in fGrid.Rows)
fGrid.Cells[ir.Index, e.ColIndex].Selected = true;
}

Then you should prevent the ability to change the current cell and selection by the user using the following two iGrid events this way:

private void fGrid_CurCellChangeRequest(object sender, iGCurCellChangeRequestEventArgs e)
{
  e.DoDefault = false;
}

private void fGrid_SelectionStartChange(object sender, iGSelectionStartEndChangeEventArgs e)
{
  e.DoDefault = false;
}
Renato
2015-12-28T11:42:59Z
It works, i'am happy! Thank you very much, Igor