View Single Post
  #73 (permalink)  
Old 08-28-2007, 04:52 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Thumbs up 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..
Reply With Quote