Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 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 July 4th, 2007, 08:58 PM
Registered User
 
Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Viewing Datatables in Dataview

Morning,

I have been writing some code for a model in Visual Studio 2005. As part of this code I have created a small datatable called "TableMultiplication" which is part of a DataSet called "DSManipulations"

That was all fine and the table works well. However as an extra thing I would like to view the table (as part of a new seperate module), to see what it looks like (it is a 3*6). I assume I can use dataview to do this but am unsure what code to use from start to finish.

Can anyone help me or point me in the right direction please

cheers


gus
 
Old July 6th, 2007, 07:08 AM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

A couple of questions (and comments) to clarify:

1.) What is the scope of the dataset (was it created PUBLIC at the module level)? If so then you can reference it from any portion of your application. If it was created at the form level then it (under most instances won't readily be available).

2.) Are you refering to a DataGridView as the control to view your dataset with? If so, any instance of a DataGridView on all forms should be able to reference a publicly created dataset.




Best Regards,
Earl Francis





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With DataTables visanza Beginning VB 6 1 January 9th, 2007 01:30 PM
How to merge two datatables????????? avats ADO.NET 3 March 21st, 2006 08:40 AM
Displaying 2 datatables in 1 datagrid muskaanbajaj Classic ASP Databases 5 May 19th, 2005 11:36 AM
DataTables and Web Services BSkelding VB.NET 2002/2003 Basics 0 December 22nd, 2004 06:12 PM
2 x DataTables and Datagrid Vince ADO.NET 0 September 22nd, 2003 08:57 AM





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