Grid Control - two colums in one, depend on value

176 Views Asked by At

Hello I have grid control (devexpress) with two columns here

I would like to DONT have column 2 (not visible) and these rows with ticks (in column 2) move to column 1. Rows with no ticks are permanently on false and I dont want user to even see it.

Could you help me how I can do this or Is it even possible? Thank so much.

Final View here

1

There are 1 best solutions below

0
我零0七 On

You can use GridView.CustomRowCellEdit event to custom the editor in a column.

if the column2.Value is true ,you can set column1.RepositoryItem = RepositoryItemCheckEdit. And you can set column2.Visible=false to hide column2