drop down listboc in grid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
asp.net , VB.net
Version 1.1
I have aspx page with a grid with a drop down list in a column. The DDL
causes postback. I need to put some code to be executed on the server when
the postback is caused by the DDL (and identify the table row) . However,
this control does not cause a grid_itemCommand event. How can I implement
equivalent functionality?
Thanks!
 
The easiest way is to specify in the template markup a value for the
OnSelectedIndexChanged, e.g.

<asp:DropDownList OnSelectedIndexChanged ="ddl_SelectedIndexChanged"
AutoPostBack =true ID="ddlOrders" Runat=server ></asp:DropDownList>

I have a sample that uses this strategy:
http://www.societopia.net/samples/dataGrid_6c.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top