Find Control("lbl Project Status"), Label) Try If In Str(lbl Text.
To String) ' & vb Cr Lf & vb Cr Lf 'Val(CDate(Track Projects.
Auto Generate Edit Button = True Then i Col Date = 8 i Col Proj Stat = 10 End If Dim lbl Text As Label For i Row = 0 To Track Projects.
Selected Value Case 8 str Params = "(" & str Params & ") AND ((" & _ "(Right(Completion Date,4) '2005'))" & _ "OR (Completion Date is NULL))" Case 7 str Params = "(" & str Params & ") AND (Right(Completion Date,4) = '2007')" Case 6 str Params = "(" & str Params & ") AND (Right(Completion Date,4) = '2006')" Case 5 str Params = "(" & str Params & ") AND (Right(Completion Date,4) = '2005')" End Select str SQL.
Visible = True Catch ex As Exception Track Projects. Close() End Using Hi Lite Rows() End Sub Private Sub Hi Lite Rows() 'THE FOLLOWING CODE THAT INDICATES SPECIFIC COLUMN NUMBERS IS DETERMINED 'BY THE HTML ASPX CODE THAT DETERMINES HOW THE GRIDVIEW LOOKS Dim i Col Date As Integer = 7, i Row As Integer, i Col Proj Stat As Integer = 9 ' Msg Box(Track Projects.
I have a whole host of filters that do not work now since they rely on the auto postback feature in check boxes and drop down lists that I have. To String(), "ecylkows") = 1 Then i Col = i Chx 1 Track Projects.
Now, when an user edit a row then click update, I'm having problem getting the new values in gridview's rowupdating event, it always returns the old values. With that being said you could go directly after the form post data perhaps, i usually find it's easiest to debug then search through and find your key value pair. I'll take a closer look at your posts maybe tomorrow, and definitely Monday, but I'm just a hack, and I so close to dumping this whole thing and lettting someone else do it...whooops there isn't anyone else... The new values are not being retrieved, just the old values. Excuse my crude Msg Box methos; it only goes to prove what a hack I am. Controls Dim dcfc Cell As Data Control Field Cell = o Ctl If dcfc Cell Is DBNull. Controls Dim cell As Data Control Field Cell = Try Cast(control, Data Control Field Cell) If cell Is Not Nothing And Also cell. By the way, when I attempted to cut and paste your code, the compiler would not accept the arguments (String, Object) at the end of IDictionary, saying that IDictionary has no parameters, and also in the return values portion below it complains that Dictionary is not a type. Dictionary is a generic type and you have to include System. I'm not sure whats going on in your case Yes I am getting the exact data that's in the edit row. It's a record that looks similar to the other data in the database, but it is defintiely different values so I am confident that I am looking at the edit row.
I think my question was more to the point, if I have a datasource then I have to have boundfields, and this would preclude use of template fields? you're not using a single datasource in your templatefields.Is there a flag I can turn on or off when I am doing row updating so that I can detect and not rebind? Protected Sub Page_Load(By Val sender As Object, By Val e As System. Load Dim i Col As Integer, c As Integer = 0, i Chx As Integer 'If In Str(Http Context. Selected = True Else End If Fill Grid View() End Sub Private Sub Fill Grid View() Dim i Col As Integer, c As Integer = 0, i Chx As Integer, i As Integer Dim str SQL As New System. String Builder Dim str Params As String = "" 'THE FOLLOWING CODE THAT INDICATES SPECIFIC COLUMN NUMBERS IS DETERMINED 'BY THE HTML ASPX CODE THAT DETERMINES HOW THE GRIDVIEW LOOKS For i Chx = 0 To Me. Count - 1 i Col = i Chx If i Chx = 1 Then i Col = i Chx 1 Track Projects. Edit Index Then i Row = 1 If i Row = Track Projects. Count Then Exit For lbl Text = Direct Cast(gv Track Projects.