Aug 12
if you have an UltraWebGrid with a TemplatedColumn, the TemplatedColumn has a checkbox or any other control. If you want to access the control inside that column here’s what you need to do:
- assuming you have a loop cycling through the rows
- Dim rw As UltraWebGrid.UltraGridRow = UltraWebGrid1.DisplayLayout.Rows(i)
- Dim cl As UltraWebGrid.UltraGridCell = rw.Cells.FromKey("myColumnName")
- Dim col As Infragistics.WebUI.UltraWebGrid.TemplatedColumn = cl.Column
- Dim ci As Infragistics.WebUI.UltraWebGrid.CellItem = col.CellItems(i)
- Dim chk As CheckBox = ci.FindControl("myCheckBoxID")
now you can access that checkbox and do whatever you want with it.
Recent Comments