I have an Ultrawebgridcolumn of type dropdownlist. I want to assign the values to the dropdown of each row with different values based on some criteria. How can I add that?
I have this function where I set the text values of some fields.
private void uwg_xGrid_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
How can i make use of this function or any other way ? Please help . I am getting stuck at this point for this.
Hello Yi,
Actually those built-in editors are based on column level means that you can change them on row basis in the context of the same column so easy, but I have replied on post with similar requirements I think you can use the same technique to implement you scenario:
http://forums.infragistics.com/forums/t/41328.aspx
The problem is when I set the valuelist based on each row, the valuelist of the other rows are also getting changed since the dropdown field acts like a template. I am unable to define different valuelists for each of the row.
This sounds like a limitation with dropdown fields.
Any help would be highly appreciated.
Great sample how to build ValueList /DropDown/ at runtime you can refer on the following link :http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.1/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v10.1~Infragistics.Win.UltraWinGrid.UltraGridColumn~ValueList.html
Hope this helps.