Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 17 Jan 2006 17:28:02 -0800,    group: microsoft.public.dotnet.datatools        back       


Selecting rows with Strong Data Types DataSets   
I’m using Strong Data Types DataSets. Using it is great for several reasons, 
one of them is creating new rows using NewTableRow, this row is not a simple 
DataRow, but a complex DataRow with table fields as properties, 
xmlSchemaWriting, etc..

But when you perform table.Select it returns a simple DataRow(), then you 
are forced to access each field using field names and columnCollections. Is 
there a way to perform a table.Select and having an array TableRow() as a 
result?

-- 
Thanks in advance

Rafael
date: Tue, 17 Jan 2006 17:28:02 -0800   author:   Rafael

RE: Selecting rows with Strong Data Types DataSets   
For those interested I figured out how, its simple, once you perform the 
table.select which returns a datarow(), you just convert each row to your 
tableRow with CTYPE or DirectCast...

-- 
Thanks in advance

Rafael


"Rafael" wrote:

> I’m using Strong Data Types DataSets. Using it is great for several reasons, 
> one of them is creating new rows using NewTableRow, this row is not a simple 
> DataRow, but a complex DataRow with table fields as properties, 
> xmlSchemaWriting, etc..
> 
> But when you perform table.Select it returns a simple DataRow(), then you 
> are forced to access each field using field names and columnCollections. Is 
> there a way to perform a table.Select and having an array TableRow() as a 
> result?
> 
> -- 
> Thanks in advance
> 
> Rafael
date: Thu, 19 Jan 2006 05:58:05 -0800   author:   Rafael

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us