P
Programatix
Hi,
I'm working on a WebService project. I'm trying to validate data before they
are updated to the database by handling the RowUpdating event for a
SqlDataAdapter.
The data being handled has DataRelation which is related to another
DataTable. As for that, I also need to retrieve the DataRelation from the
current row being updated. I wrote a code which look something like this,
Dim relation As DataRelation
For Each relation In e.Row.Table.ChildRelations
Dim rows As DataRow()
' e.Row.GetChildRows(relation) will always return nothing
rows = e.Row.GetChildRows(relation)
Next
If you try this code, e.Row.GetChildRows(relation) will always return
nothing even though the DataTable which contains the DataRow has
DataRelation.
Beside that, the e.Row.HasErrors and e.Row.RowError properties will also
return nothing.
Is this a bug in .NET Framework 1.1 or I need to change the coding.
Thanks.
I'm working on a WebService project. I'm trying to validate data before they
are updated to the database by handling the RowUpdating event for a
SqlDataAdapter.
The data being handled has DataRelation which is related to another
DataTable. As for that, I also need to retrieve the DataRelation from the
current row being updated. I wrote a code which look something like this,
Dim relation As DataRelation
For Each relation In e.Row.Table.ChildRelations
Dim rows As DataRow()
' e.Row.GetChildRows(relation) will always return nothing
rows = e.Row.GetChildRows(relation)
Next
If you try this code, e.Row.GetChildRows(relation) will always return
nothing even though the DataTable which contains the DataRow has
DataRelation.
Beside that, the e.Row.HasErrors and e.Row.RowError properties will also
return nothing.
Is this a bug in .NET Framework 1.1 or I need to change the coding.
Thanks.