hI, HOW TO populate valuelist in one column based on another column value at runtime?
Thanks in advance.
Hello,
I believe that the following link would help you to achieve what you are after:
http://community.infragistics.com/winforms/codesamples/creating-a-dropdown-list-in-a-grid-cell-whose-list-values-are-dependent-on-another-cell.aspx.
Please do not hesitate to contact me if you need any additional assistance.
Thanks Boris Toromanov.
You helped me.But I have another question.Ok,Depends on another column cell value sometimes in this column must populate valuelist but samoetimes editable cells.Not valuelist.Only in one column.is it possible?For example on another column if selected city this column will populate valuelist,if select street this column will not populate valuelist.only editable cell,to edit yourself.
thanks.
You could achieve this by setting the 'ValueList' and/or 'Style' property of a particular cell, like this:
private void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
{
ValueList list = new ValueList();
list.ValueListItems.Add("1");
if (e.Row.Index == 0)
e.Row.Cells[0].ValueList = list;
}
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.