Hi,
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