i am using infragisitics webDataGrid
in one of the columns i have to show alternately combox or text box according to the data source.
in the textbox the user should enter values.
in the combobox(can be different values in combo on each row) the user selects a value.
How to do it ? please help.
Thank you
Michal
Hello Michal.
Thank you for posting in our forums.
If your requirement was only regarding comboBox in the cell I would recommend you using DropDownProvider
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Editing-and-Selection/DropDown-Editors/Default.aspx?cn=data-grid&sid=a01f7736-5540-4cb6-9526-873efd65f20b
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2?page=WebDropDown_Using_WebDropDown_as_an_editor_provider_for_WebDataGrid.html
But as you want different behavior for each row you should use template column for the purpose, as currently only one provider can be set for Column.
Initially you should set both WebDropDown and TextBox as hidden and inside InitializeRow you should set as Visible the desired control and bind it.
http://news.infragistics.com/forums/p/56991/291275.aspx#291275
Let me know if you need further assistance regarding this