I am new to infragistics and am trying to find the grid row that fires when a change is made to a dropdown on the row, in the grid. I know when the dropdown changes, but can't find correct event to get the grid row's other column info.
So far I've tried updaterowbatch, updaterow, updategrid, updatecellbatch, updatecell and none seem to fire on postback.
I'm sure I'm missing something simple that someone has found long ago...
Thanks!
psych - thanks for your response and time...i've created the code and all, no problem...but let me state my problem this way...when I put a breakpoint inside the event, I never hit that breakpoint when ichange an item in the dropdown or postback
Maybe I shouldn't be hitting it? or what
protected void gridx_UpdateCell(object sender, CellEventArgs e) { - breakpoint here
UltraGridCell cell = e.Cell; - breakpoint here { } }
Handling this event should be pretty straight forward. You can do it using the properties tab of the webgrid or by code
UltraWebGrid1.UpdateCell += new Infragistics.WebUI.UltraWebGrid.UpdateCellEventHandler(UltraWebGrid1_UpdateCell);
{
//Here you can get the cell, column and row from which the update event was fired and access all of their methods and properties
UltraGridCell cell = e.Cell;
UltraGridColumn column = e.Cell.Column;
}
If it doesn't seem to work i'd recommend you to try with a dummy project to see if it works in a less complex environment and if it does, look at your project to see what else is going on there that could be messing things up.
One final thought, maybe a silly thing. The updateCell event is fired after you end editing that cell.. That means you have to move on to another control to see this event fired :)
i'm just not seeing this event fire when the drropdown changes or on postback
You can get the row which cell's been updated within the arguments of the UpdateCell event
protected void grid1_UpdateCell(object sender, CellEventArgs e)
UltraGridRow row = e.Cell.Row;