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
555
Ultracomboeditor in Ultrawingrid
posted

Hi,

I want to add my custom UltraComboEditor in Ultrawingrid. i implemented as mentioned below.

MyUltraComboEditor myComboEditor = new MyUltraComboEditor();
myComboEditor.DropDownStyle = DropDownStyle.DropDownList;

//..Getting Values and adding into the list ..

libertyComboEditor.Items.Add(new ValueListItem(kv[0], kv[1]));

ultraGrid1.DisplayLayout.Bands[0].Columns[j].EditorControl = myComboEditor;

Here, i set the DropDownStyle to DropDownList but still the cell is editable.

Moreover, I want to set the Combo value at the runtime. But i wont be able to achieve this.

public void SetComboValue(int rowno, string key, int band, string value)
{
UltraGridRow row = this.ultraGrid1.Rows[rowno];
if (row != null)
{
UltraGridCell cell;
cell = row.Cells[this.ultraGrid1.DisplayLayout.Bands[band].Columns[key]];
MyUltraComboEditor myComboEditor = (MyUltraComboEditor)cell.EditorControlResolved;
int t = 0;
t = myComboEditor.FindString(value);
myComboEditor.SelectedIndex = t;
}
}

I want to capture the ValueChanged event. Even that is not firing.

will anyone help me on this.

Thanks,

Parents Reply Children
No Data