locked
how to populate data to datagrid RRS feed

  • Question

  • User1248258412 posted

    how to populate sql server data to dropdownlist in datagrid?

    Monday, April 9, 2012 9:58 PM

Answers

  • User1248258412 posted

    problem resolve, i not direct bind in datagrid now, i coding in aspx page, when edit button is click.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 10, 2012 2:52 AM

All replies

  • User-1667469836 posted

    Add a template column and include dropdownlist as shown below

    <asp:GridView ID="GridView1" runat="server">
            <EmptyDataTemplate>
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlDataSource1">
                </asp:DropDownList>
            </EmptyDataTemplate>
        </asp:GridView>

    Are you using SqlDataSource?

    Monday, April 9, 2012 10:14 PM
  • User1248258412 posted

    i using datagrid, so when i use sqldatasource, it will show getting message show that 'the active schema does not support the element 'asp:sqldatasource'

    Monday, April 9, 2012 11:18 PM
  • User1248258412 posted

    problem resolve, i not direct bind in datagrid now, i coding in aspx page, when edit button is click.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 10, 2012 2:52 AM