[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Checking for existing DataRowVersion.Original?

Ali

9/5/2003 4:48:00 PM

Got the answer.
dataset1.tables("table_name").row(0).HasVersion
(DataRowVersion.Original)



>-----Original Message-----
>Hi,
>In datagrid I used following statement to do some action
>when col_name is null in service side. But sometimes this
>statement raises an exception says: "There is no original
>row to access."
>
>If IsDBNull((Dataset1.Tables("table_name").Rows(0)
>("col_name", DataRowVersion.Original))) Then
>
>// do some action
>
>End if
>
>The DataRowVersion.current pointing to the right row but
>in some situation DataRowVersion.Original doesn't point
to
>the right one, and raises that exception.
>Now the question is: How could i check for existing
>DataRowVersion.Original? i meant, to see if
>DataRowVersion.Original is available then do the action,
>other wise ignore it.
>
>Thanks.
>
>
>
>
>.
>