Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Re: Manipulating Data Table contents


Message #1 by "Fredrik Normen" <fredrik.normen@e...> on Wed, 01 Nov 2000 08:56:55 +0100
Hi=2C



Here is an example=3A



You can use the function select from the Datable class=2E

Select returns an array of all DataRow objects that match the filter 



criteria=2E 





Dim cust() As DataRow =3D dt=2ESelect(=22StringValue =3D =27Hello=27=22)



If you want to cancel your changes you can call the function BeginEdit=2E



cust(0) is the first row=2E So we start to change the firstrow=2E



cust(0)=2EBeginEdit





After this we change the column StringValue2 to the Swedish word for 



Hello =3A)



cust(0)=2EItem(=22StringValue2=22) =3D =22Hej=22



Display the value from the column StringValue2=2E In this case it=27s =22

Hej=22

Response=2EWrite(cust(0)=2EItem(=22StringValue2=22)=2EToString())



Now we want to canel our changes=2C so we will do that by calling the 



CancelEdit function of the DataRow object=2E

cust(0)=2ECancelEdit



When we are done we call tne EndEdit function=2E

cust(0)=2EEndEdit



Hope this will help you=2E=2E



You can find more about the DataRow object in the pre-beta SDK=2E



/Fredrik Norm=E9n







----- Original Message -----

From=3A =22Amit Kalani=22 =3Ckalani=40writeme=2Ecom=3E

Date=3A Tuesday=2C October 31=2C 2000 5=3A53 pm

Subject=3A =5Baspx=5D Manipulating Data Table contents



=3E Given a ASP+ Data Table=2C can somebody tell me how to manipulate 



=3E data in its cell using DataRow Class=3F

=3E 



=3E Thanks

=3E 



=3E Amit

=3E 



=3E 


  Return to Index