Re: ASP.NET Data Controls Thanks ..
I now have it working thanks to you.
For anyone else that needs to know.the below code will fire off an email when BOTH checkboxes (within a gridview update) are ticked.
Code for sending email not included.
Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
Dim gvr As GridViewRow = GridView1.Rows(e.RowIndex)
Dim VarMGRApproved As CheckBox = CType(gvr.Cells(1).Controls(0), CheckBox)
Dim VarHRApproved As CheckBox = CType(gvr.Cells(2).Controls(0), CheckBox)
If VarHRApproved.Checked = True And VarMGRApproved.Checked = True Then
__________________ H2O
Without us, no one can survive.. |