Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
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 16th, 2005, 01:29 PM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 16 - DataSet Example - MODIFIED???

Hi All:

I completed the example in chapter 16 called "DataSet Example".

I decided to modify it slightly to include placemarker variables in the SQL code, that are provided by a value in a text box.

For example, let's say I wanted to display the data grid, but only for a specific author's last name contained in a text box.

I was able to get the grid to display with an initial value supplied in the text property of my text box, so I know the placemarker is working on the load of the form.

What I need to know, is how to refresh/requery the datagrid when the user changes the last name in the text box below the datagrid and presses a "search button", basically changing the search criteria.

Can someone help me?
 
Old May 17th, 2005, 01:53 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi

You have to rebind the datagrid with the DataSet loaded by the SQL query with the required condition in where clause.

Prashant

 
Old May 17th, 2005, 12:52 PM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks... I managed to get it to work....

I also re-did my selection logic to work off of a combo box populated from a dataset read from a SQLServer table.










Similar Threads
Thread Thread Starter Forum Replies Last Post
Try it out:Ch 16 Dataset Example flhartley VB.NET 2002/2003 Basics 1 August 28th, 2009 07:00 AM
Chapter 16 Fig 16-11 krsouthern BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 July 8th, 2008 12:11 PM
Check if dataset was modified before closing form Kia VB Databases Basics 4 July 16th, 2007 08:46 PM
Chapter 16, DataSet Example danascmitz VB.NET 2002/2003 Basics 6 January 5th, 2004 05:11 AM
DataSet example, Chapter 16 jtimms BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 13 October 11th, 2003 05:03 PM





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