Even the things that look like they will be easy turn out to be time-consuming...
I added a checkbox column to my grid. I checked the first row and hit a button that iterates through the rows testing if the checkbox is checked or not. It tests false.
I've viewed two tutorials and it looks like it should be as easy as this:
Code:<asp:GridView ID="gvInvoices" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:CheckBox runat="server" ID="ckRow" /> </ItemTemplate> </asp:TemplateField>I am having no trouble getting access to the checkbox, but it says ck.Checked is False.Code:Try For Each row In Me.gvInvoices.Rows Dim ck As CheckBox = DirectCast(row.FindControl("ckRow"), CheckBox) If ck.Checked Then...
Does anyone have a *good* tutorial or code that works???
Thanks.




Reply With Quote