|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
populate a dg column based upon the value populated to another row in the datagridIs it possible when populating a datagrid to populate a dropdownlist
column based upon the value populated to another row in the datagrid? (i.e. I have a drop down which I want to populate differently for each row with user names based upon a UserRegionID which is also a column in the row). Since you don't actually know the value of the UserRegionID until the data is already bound to the datagrid, how do you do this? Thanks, Mike *** Sent via Developersdex http://www.developersdex.com *** You can use the datagrid events (RowDataBound I think) to handle this
by populating your dropdown using the id of each row as the grid is populated HTH ----------------------------------------- David Gray ASP.NET/C# Developer/Architect (MCAD.NET) On Fri, 13 Jan 2006 02:23:16 -0800, Mike P <mike.p***@gmail.com> wrote: Show quoteHide quote >Is it possible when populating a datagrid to populate a dropdownlist >column based upon the value populated to another row in the datagrid? >(i.e. I have a drop down which I want to populate differently for each >row with user names based upon a UserRegionID which is also a column in >the row). > >Since you don't actually know the value of the UserRegionID until the >data is already bound to the datagrid, how do you do this? > > > >Thanks, > >Mike > > >*** Sent via Developersdex http://www.developersdex.com ***
Other interesting topics
global functions?
Basic question about database connection in ASP.NET Why so much trouble with ellipses? File Download FormsAuthentication.SignOut() and User.Identity reference to a "global" variable from within an aspx page 3-Tier Binding Problem ????????? Common functionality across pages, what's the best solution? Inserting a default ListItem in DropDownList Control How to gather the caller page information? |
|||||||||||||||||||||||