I've got a grid with two columns. ColumnA is regular text, ColumnB is a dropdownlist. I want to bind the values in ColumnB's valuelist based on the value in ColumnA, on a row-by-row basis. I got it working by callingback and rebinding the valuelist on a ActiveRowChange, but that screws up focus, and isn't very "smooth" either. Is there another way, preferably one that doesn't require a postback/callback?
I think it might be easier to filter the valuelist, but the total (non-filtered) list is big (3000+ rows), and my grid would balloon if I put that many rows into the dropdown for every row.
Can anyone point me in the right direction?
Thanks!
There's an example of how to do that using the WebCombo control in the samples browser.
Can you please give the source code of the above example? we are exactly in the same scenario and I am strugging hard to figure it out since last few days.
Thanks
It appears the webcombo control will not work correctly (when bound to a system.data.dataset) unless I have AutoGenerateColumns = True. Basically, it will bind, but when I click on the dropdown arrow it will not drop down. There is no response whatsoever. The example you provided seems to confirm this theory, as it appears to have AutoGenerateColumns on, too. Can you confirm or deny this?
Here is what I did to test this:
Fine these examples are fine. but what i found that there is a chance of invalid infomation. If user selects some invalid orderID before the loading of respective data. then data will be no more consistant .
there should be some row level drop down binding. so each drop down only contain respective. then there will be no chance of data corruption.
I've since tried using a WebCombo as an editor control, but couldn't get a working solution. It seems like I probably need to throw in some sort of LoadOnDemand stuff too, but I'm not very familiar with that, and I'm not sure if the LoadOnDemand needs to be on the grid, or the webcombo control. Do you know of a good tutorial for that?
Great!
How do I actually do it? Examples are great, but they don't explain how to do it. Are there any "how-to" type articles?