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]);
Sorry, I mised the image file..I uploaded the image file.
Hi Edward,
Thank you for posting in our forums.
What you could do in your case is to handle the CellChange event. In it if a cell from the Types column has changed, change the value of the Blink column and set the appropriate editor to the “FileName/Value” based on whether you want the editor button to be displayed. You might also want to set the Activation property of the cell in order to enable or disable editing.
I have attached a sample which demonstrates this approach.
Please let me know if you have any additional questions.