473,463 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Drop down list autopostback event from within datagrid

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

Nov 20 '05 #1
0 1426

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Miguel Dias Moura | last post by:
Hello, I have a Drop Down List with 3 options. I want to redirect to a new page when an options is selected. I don't want to use a button. The redirection should be fired when the option is...
2
by: Benign Vanilla | last post by:
I am a .NET newbie, and need some help. I have a datagrid that is bound to a table. That works. I also have a template column in the grid for updating a status value for each row. This is...
4
by: Ian Oldbury | last post by:
Hi all, i'm trying to define the number of items that are shown at a time on a dropdownlist. Ideally i'd like to do this within the css class if possible. How is this done?? This the...
4
by: Chris Kettenbach | last post by:
Good Morning, Quick question, I have an EditItemTemplate inside a datagrid. It should contain a drop down list of possible choices. I have an EditCommandColumn. The drop dow list column should...
1
by: pmelanso | last post by:
Hello, I have a drop down list which is dynatically loaded from a database and I have a second drop down list that is also dynatically loaded depending on what is selected in the first drop down...
4
by: rodchar | last post by:
Hey all, I was wondering againg...on my ASP.NET app I have a drop down list. I've set the control to AutoPostBack=True. When I run this app, I select something out of the drop down list and the...
2
by: Dave A | last post by:
I am stuggling with databinding a drop down list, hooking into the SelectedIndexChanged and attempting to avoid using the viewstate. The drop down list is quite large so I would prefer to avoid...
3
by: Mike Collins | last post by:
I'm not feeling too smart right now, but I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. Can someone show...
0
by: weiwei | last post by:
Hi here is my scenario, I create a drop down list in itemtemplate.(that drop down is created from db), after user click edit command, my ideal plan is have another drop down list in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.