UltraWebGrid Cell and CellItem

.Net Add comments

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:

  1. assuming you have a loop cycling through the rows
  2. Dim rw As UltraWebGrid.UltraGridRow = UltraWebGrid1.DisplayLayout.Rows(i)
  3. Dim cl As UltraWebGrid.UltraGridCell = rw.Cells.FromKey("myColumnName")
  4. Dim col As Infragistics.WebUI.UltraWebGrid.TemplatedColumn = cl.Column
  5. Dim ci As Infragistics.WebUI.UltraWebGrid.CellItem = col.CellItems(i)
  6. Dim chk As CheckBox = ci.FindControl("myCheckBoxID")

now you can access that checkbox and do whatever you want with it.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in