Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Get Checkbox Object From WebGrid Column
posted

I want to retrieve the Checkbox object from each column of a webgrid. I don't want to set or get the "state" of the control. Just want the object so I can uncheck it and disable it.  Can't seem to find the right methods to get the control. Was working with this...

foreach (UltraGridRow row in this.uwgEmailServers.Rows)
{
      
CheckBox cb = (CheckBox) (row.Cells[0].  ?????
       cb.Checked =
false;
       cb.Enabled =
false;
}

Any help would be appreciated. Thanks