|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Embedded DropDownList in column.I am using Visual Studio 2003 with VB.NET and I have bought 3 books and
surfed several web sites which claim how to define and bind an embedded dropdownlist in a datagrid for ASP.NET. None of them include the full working code and I am having a hard time firing the function which binds the datagrid for each of the rows as well as one which fetches the dropdownlist's value when it is time to save it.. I do not want to have an edit button or EditTemplate implementation. All I want to do is create a datagrid with 6 columns with 1 column being a dropdownlist fully populated. I would like to have a submit button which loops through each row at the end so that I can submit these changes and then fetches a new set of records to assign values to based upon the value in the dropdownlist. I can not seem to get these events lined up properly. Does anybody understand this concept enough to help out? Hi David,
You can use <asp:TemplateColumn> and <ItemTemplate> to hold dropdownlist, or other server control, in a datagrid. HTH Elton Wang elton_w***@hotmail.com >-----Original Message----- bought 3 books and>I am using Visual Studio 2003 with VB.NET and I have >surfed several web sites which claim how to define and bind an embedded>dropdownlist in a datagrid for ASP.NET. None of them include the full>working code and I am having a hard time firing the function which binds the>datagrid for each of the rows as well as one which not want to have anfetches the >dropdownlist's value when it is time to save it.. I do >edit button or EditTemplate implementation. All I want to do is create a>datagrid with 6 columns with 1 column being a dropdownlist fully populated.>I would like to have a submit button which loops through each row at the end>so that I can submit these changes and then fetches a new set of records to>assign values to based upon the value in the dropdownlist. I can not seemShow quoteHide quote >to get these events lined up properly. > >Does anybody understand this concept enough to help out? > > >. > |
|||||||||||||||||||||||