VB.NET 2002/2003 BasicsFor 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
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
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.