Peter Schilling
2021-07-14T12:23:53Z
Hello Igor,

I create a dropdown-column with:

grid.Cols[pos].CellStyle.DropDownControl = _comboBereiche;

So far, so good.

But now I fail to remove this dropdown just from specific cells within this column[pos].

Can you help?

Greetings,
Peter
Sergiy/10Tec
2021-07-15T04:20:15Z
Hi

Igor is on vacation, so I will answer your question.
If you assign Cols[pos].CellStyle.DropDownControl, all the cells of this column will
use asssigned drop down control.

If you need to have different drop down or other cell settings,
you need to create different CellStyle objects and assign them directly to cells (iGCell.Style property). Also do not
assign column drop down control setting.

iGCellStyle Style1 = new iGCellStyle(); // no drop down

iGCellStyle Style2 = new iGCellStyle(); // with drop down
Style2.DropDownControl = _comboBereiche;

foreach(iGCell cell in iGrid1.Cols[pos].Cells)
if(some_condition) { cell.Style = Style1 } else {cell.Style = Style2}

Peter Schilling
2021-07-15T06:48:48Z
Ok, thank you!

I thought it must be done this way but I hoped there was a way of removing the dropdown afterwards..

Greetings,
Peter