Browse sexy chat site profile - Gridview rowupdating neweditindex


I have no problem accessing it from the Grid View1_Row Updating event for validation purposes.I would like to be able to check the date of the calendar before editing, and then cancel the edit if the date is prior to today's date. the startdate always evaluates as either an empty string or "Nothing".

gridview rowupdating neweditindex-30gridview rowupdating neweditindex-14

A Grid View Edit Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the edit operation should be canceled.

so i have done this protected void Grid View1_Row Editing(object sender, Grid View Edit Event Args e) but every time it is pointing to the first row, can i get the row which i have selected to be updated.

Add(New Data Column("Col1_ML", Get Type(String))) dt.

Add(New Data Column("Col1_PH", Get Type(String))) dt.

Connection = conn2 sql = "SET DATEFORMAT dmy; SELECT * FROM XXXX " cmd. Execute Reader() Dim Temp Staff Key As Integer Dim Temp Post Key As Integer Dim Temp Shift Date As Date Time Dim Temp Start Time As Date Time Dim Temp End Time As Date Time Dim Temp SL As String Dim Temp Roster Key As Integer Dim Temp VL As String Dim Temp ML As String Dim Temp PH As String Dim Temp APH As String Dim Temp TOIL As String Dim Temp Others As String Dim Temp Shift Type As Integer Dim Temp Submitted By As Integer Dim dt As New Data Table() dt. Add(New Data Column("Staff Name", Get Type(String))) dt. Add(New Data Column("Post Code", Get Type(String))) dt. Add(New Data Column("Staff Key", Get Type(Int32))) dt. Add(New Data Column("Post Key", Get Type(Int32))) 'Monday dt. Add(New Data Column("Col1_Roster Key", Get Type(Int32))) dt. Add(New Data Column("Col1_Shift Date", Get Type(Date Time))) dt. Add(New Data Column("Col1_Start Time", Get Type(Date Time))) dt. Add(New Data Column("Col1_End Time", Get Type(Date Time))) dt. Add(New Data Column("Col1_SL", Get Type(String))) dt.