Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
I want to change another column's window display according to one column's ultraComboEditor's option.
posted

Hi...

I made this window program with Infragistics grid and UltraComboEditor like  Infragistics-grid.png.
But I have this problem.

Grid's column 2 (column Type) has UltraComboEdit in the cell. It has 2 items (Text, Image ).
I want to do like that.
If I select Text, the column 3 (column FileName/Value) shows a textBox and column 4 (column Blink)'s checkbox is checked.
If I select Image, the column 3 (column FileName/Value) shows a textBox(ReadOnly) and a button ( for openfileDialog) and column 4 (column Blink)'s checkbox is unchecked.

I want  to know how to register the event handler and the Event function..

My codes are as following

private readonly UltraComboEditor _ultraComboEditor1;

ColumnsCollection columns = ultraGrid1.DisplayLayout.Bands[0].Columns;
// Initializing columns associating with embedded editors
columns[2].EditorComponent = _ultraComboEditor1;

// Populating 5 rows of data
for(int i=0;i<4;i++)
_ultraComboEditor1.Items.Add(0, StateTypeName[i]);