
June 30th, 2003, 11:52 AM
|
|
Registered User
|
|
Join Date: May 2003
Posts: 10
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Ok. I haven't worked with dropdownlists inside a datagrid, but I used to use checkboxes, so I'll try to explain how you can do that. When you select a line on the datagrid, then you have an indexed attribute which is the index of the datagrid, ok?. Then you should have some precedure to know which item on the dropdownlist correspond with the customer selected. When you know which line have you selected, then you can go trhough the datagrid, and recover the control on that selected row, using a FindControl() method. When you got the control, then you can select the suitable item with the SelectedIndexItem propertie. I recommend you that before changing the selected index, change it before to SelectedIndex=-1, so you won't have problems like ' Drop downlists can't have multiple selections'.<br>I think I haven't be much clear, if you can't solve the problem with that, tell me, and I'll try to answer more much clearly (I'm trying to become an asp.net assister).<br><br><br>--The artificial intelligence never will be higher than the natural stupidity--
|