dataSet acceptChanges
From: s-galit (sgalit_at_discussions.microsoft.com)
Date: 09/27/04
- Next message: amit.purohit: "Login Page Problem; Click Events not fired"
- Previous message: Jon Skeet [C# MVP]: "Re: The pros and cons of .NET"
- Next in thread: Miha Markic [MVP C#]: "Re: dataSet acceptChanges"
- Reply: Miha Markic [MVP C#]: "Re: dataSet acceptChanges"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 05:03:01 -0700
when im doing dataSet1.tables(0).acceptChanges the rowChanging event is called
and im getting an error -"cannot find columns 8"
i dont know why im getting this error
can someone tell me what is wrong??
Private Sub exercise_rowchanging(ByVal sender As Object, ByVal e As
System.Data.DataRowChangeEventArgs)
Dim num1 As New Integer
Dim num2 As New Integer
Dim num3 As New Integer
num1 = e.Row.Item(0)
num2 = e.Row.Item(1)
num3 = e.Row.Item(2)
If CInt(num3) <> CInt(num1) + CInt(num2) Then
e.Row.RowError = "The result column contians an error"
e.Row.SetColumnError(e.Action, "Result cannot be " & CStr(num3))
End If
End sub
thanks
- Next message: amit.purohit: "Login Page Problem; Click Events not fired"
- Previous message: Jon Skeet [C# MVP]: "Re: The pros and cons of .NET"
- Next in thread: Miha Markic [MVP C#]: "Re: dataSet acceptChanges"
- Reply: Miha Markic [MVP C#]: "Re: dataSet acceptChanges"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|