hi all
Make a dropdown inside the webdatagrid binding as a templatefield if any onw knows help !
Hello manojt,
For adding a dropdown that is contained in the WebDataGrid you can use the built-in dropdown editor provider. Attached is a sample on the thread for the usage and setup when using the WebDataGrid control.
Also more information on adding WebDropDown as an editor provider can be found here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDropDown_Using_WebDropDown_as_an_editor_provider_for_WebDataGrid.html.
Let me know if you have any questions with this matter. Thank you.
I went to the link you posted. It shows how to set one up. My problem is that, I store the datavaluefield which is an ID field, not the displayvaluefield which is some text. When I rebind the dataset to the grid how do I get the dropdown value and cell value to show the text? Here is code.. for the drop down..
wcBriefDebriefPeople.DataSource = PersonByTypeDS wcBriefDebriefPeople.DataBind() wcBriefDebriefPeople.DataValueField = "Person_ID" wcBriefDebriefPeople.DataTextField = "Name"
So the Dataset stores the Person_ID, when the grid is rebound I want the grid to show the Name in the cell not the person_ID.
Hello Daryl007,
This is just a follow up on the thread if you have any questions in regards to setting up the dropdown editor provider of the WebDataGrid. In the example demonstrates on setting up the column key and editor id of the column settings on the cell editing behavior.