Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 27th, 2007, 12:50 PM
Authorized User
 
Join Date: Dec 2006
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Yasho
Default dataview

Is it possible to load data from dataview to array(i,j)in vb.net 2003
I have a dataview loaded and sorted.
Now I have to transer these data to a 2 dimensional array
Can you wise people give me the general formet of commnad syntax
Yasho

yvk
__________________
yvk
 
Old May 28th, 2007, 03:40 AM
Authorized User
 
Join Date: Dec 2006
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Yasho
Default

I Have solved the issue
Here is the solutions
the general syntax of the command is
Movies(i, j) = dvReports.Item(i).Item(0)
                 dataview.rows.columns

there is a little curve ball here
              Dataview are loaded from dataset and all columns of the data table are loaded in the dataset, whether you have them in your select query or not.
If your data adapter select query do not select some columns then the data in those columns are not Loaded and dataset have null in them.
Therefore the some of the dataview column (represented by Item(0) part in this example ) may have Null values.

If you are a beginner like me and have some more questions about it, please ask here or email me.

Yasho


yvk





Similar Threads
Thread Thread Starter Forum Replies Last Post
about how to use dataview to search, thanks! raybristol ASP.NET 1.0 and 1.1 Basics 5 April 25th, 2008 06:02 AM
Help with DataReader/Dataview? saf ASP.NET 2.0 Basics 4 December 14th, 2006 01:01 PM
Sorting With dataView anubhav.kumar ADO.NET 1 March 17th, 2005 05:06 AM
DataView Not Sorting pbyrum C# 3 December 27th, 2004 06:30 PM
DataView vivi C# 4 November 10th, 2003 01:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.