Hi,
I am using WebDataGrid and one of the columns in the grid has check box.
I want use the check box as a row selector, on clicking the check box we should be able to get the row selected and highlight it as well.
Any help would be really appreciated!!!
Regards,
You can use checkboxes in a templated column without a problem. Databinding them is a big deal until they come out with the checkbox provider.
Ed
TAZ a few questions:
What control is MyMail using if WebDataGrid doesn't support checkboxes?
MyMail doesn't seem to be part of your samples
Thanks
Hi again,
Infragistics has been coming out with a checkbox provider for some time. They say it will be in the first release for 2011. Once the provider is there, this will be as simple as it used to be in the Ultrawebgrid.
If it's in a templated column then you have to use findcontrol and cast it to a checkbox like this:
WebDataGrid1.Rows(i).Items(WebDataGrid1.Columns("Assign").Index).FindControl(
"CheckBox1"), CheckBox)
Anyone know how to find out if the row is checked in code behind?
it used to be as simple as:
If dgCallbacks.Rows(i).Cells.FromKey("Assign").Value Then
but when I try:
If WebDataGrid1.Rows(i).Items(WebDataGrid1.Columns("Assign").Index).Value Then
The result is always false even if I have rows checked