Hello,
I have created an ultrawebgrid with 2 dropdowns inside 2 of its columns.
i want to relate the first dropdown with the second that is, when i press one element of the 1st dropdown the second must be updated and show the values corresponding to the element selected in the 1st dropdown.
This means i have to catch somehow the event of the first and post it to the second. Can someone help me doing that in C#?
Thanks in advance....
Does anybody have an idea why the UpdateCell event does not fire when I leave the cell? It only fires on leaving the row. Is there an UpdateMode property to configure that, like in the WinGrid ?
I'm in a WebAsyncRefreshPanel and I bind the grid only once, in PageLoad.
Thanks WambatED
pradeeprede said:The link which u given is not working.
I edited it. It should work now.
Yes, UpdateCell event is the only way to load your second dropdownlist. Use the above metioned code for load second dropdown.
/Mamun
You could try with the UpdateCell event.. then see if the updated cell belongs to the first column and then get it's value to send it as a parameter for the function that handles whatever you want.
grid1_UpdateCell(object sender, CellEventArgs e)
{
UpdateValueOnSecondColumn(e.Cell.Value);
}