Idealy, we'd like the reverse to happen, uncheck the first checkbox and the second checkbox is enabled.If we get that to work, then we would like the same action for the second checkbox, enabling/disabling the first checkbox. Disable buttons, checkbox based on row value I'm using C# Hello, I have a gridview with a checkbox in the first column along with a button in the last column. Find Control("checkbox2") Dim cb3 As Check Box = Grid View2. Find Control("checkbox3") Dim cb4 As Check Box = Grid View2. By performing above coding we would avoid the error - Specified cast is invalid.
Now you can ask questions directly to me on my new site ASPForums. 1) Gridview paging and multiple rows delete using checkbox.2) How to create 3 tire application using LINQ3) Binding Gridview using LINQ4) How to create RSS (Really Simple Syndication)?If we could have accessed the Bind method ,that implicitly performs two-way binding, in the code-behind then we could have just override the Row Databound event and assigned the value to the gridview's checkbox control using the Bind method.Hi all, I'm trying to disable a checkbox in a grid view either on page load or row edit.. These controls can be textbox, Drop Downlist (in Template Field), Comand Field present inside the grid. Datagrid(1.1) to Grid View(2.0) and using the Row Updating event how to extract the values from the controls.I did something similar before to send an email alert but when I try the code below I get the error Error ' Row Index' is not a member of ' System. We have to call a generic method for doing the same .(since it can be done for multiple grid.) PFB the code snippet we use. The bolded part of the code is used to loop inside a grid view.(Not Working.)Is this ideal way to deal with the requirement. Ok This is the settings: I use a Viewgrid with only itemtemplate colums for example. Disable checkbox in gridview by other checkbox Hey gang, Here's what I'm trying to do; I have a gridview with the first two columns as checkbox template fields.