aspxgridview - Re-Binding Gridview with SQL SelectCommand -
i have gridview control populated sql query. have following code in void page_load()
response.write("debug: " + qry); // debugging systemlist_sql.selectcommand = qry; systemlist.databind();
the data displayed in gridview fine, when submit page button control debug query updated new query info, not bind gridview on reload. code button below.
<asp:button id="btngenerate" runat="server" text="generate report"/>
i'm sure overlooking basic here, but... can't see it.
Comments
Post a Comment