dropdownlist in datagrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agarwalsunitadhn
    New Member
    • Jan 2008
    • 82

    dropdownlist in datagrid

    I had used dropdown list in datagrid. At first when the grid is shown then the data is shown in a label but after click on the edit button of the datagrid, the data is shown in dropdownlist using edit item template.here i dont know how to display the selected value same as that of the label's value.Please suggest me how can i display the selected value.
    I am working in Visual studio 2005(ASP.Net c#) and backend as ms-access.
  • agarwalsunitadhn
    New Member
    • Jan 2008
    • 82

    #2
    my problem solved by inserting the following in datagrid properties in html i.e. in source phase of designer

    SelectedValue=' <%# DataBinder.Eval (Container.Data Item,"fieldname ")%>'>

    Comment

    Working...