Hi,
I'm using ultrawebgrid to show list of records. In that, one column is template column. In that, i'm using customized user control (Calendar) control.
Now the issue is when change the date of the calendar, i need to automatically check next column checkbox. For that, I need to know row index.
How to get the row index? since the row is not selected, Active Row returns NULL. Is there any way to get row index without selecting the row?
Kindly advice.
Thanks!
Hello,
Yes, I see -- this is a good question. I recently had a somewhat similar problem before -- getting the row holding a dropdown control. The idea is to use NamingContainer and get to the parent controls in the page control hierarchy. The technique could be something like that (executed from the postback event handler)
DropDownList dropDownList = sender as DropDownList; CellItem parentCell = (CellItem) dropDownList.NamingContainer; if (parentCell.Cell.Row.BandIndex != 3) { dropDownList.Visible = false; }
This way you can reach the parent Row of the grid, get its index, etc.
The full thread can be found here:
http://forums.infragistics.com/forums/p/5667/25275.aspx#25275