By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,846 Members | 1,191 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,846 IT Pros & Developers. It's quick & easy.

Drop down list autopostback event from within datagrid

P: n/a
Ive been looking for a way to capture an autopostback event of a
dropdownlist in a datagrid control. the scenario is that, ive a
datagrid, and there is a dropdownlist column in each of the row with
each record (note the drop down dont only show when u edit a row, but
it shows always for every row), when i change a value from the
dropdown for any row of the grid, i want to get the row id (or the
record id that i can by someway put in the row as hidden variable)
and the new value of the drop down combo....
For ease of understanding... suppose an example:
We have a database table :
ID -> Integer
Name -> String
Designation -> Enum('Employee', 'Manager', 'Peon')

now the data grid shows the listing of this table... and with each
row, a combo/dropdown appears with its corresponding value selected,
for eg. if Clark is an employee, in his record in datagrid, Employee
will be selected in the dropdown, now when i change it to manager,
the form posts back because ive set the drop down to be
autopostback=true, but how will i know on the server that:
1- it is a result of such autopostback.
2- if yes, then it was clarks record.
3- wat was clark set to : means Employee, Manager, etc....

Hope to get a sol for this #W%@#$%#....

TAke care

Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.