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 July 25th, 2003, 07:05 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default datagrid control and specific sql where clause

Hi all

I am a bit new to .net and vb.

Working with the datgridcontrol. I manage to fill it fine with information from an access database.

What I would like is that when I click the datagrid I select the entire row of fields. I have manged to isolate the rownumber and thereplan to sql with an select statement. My question is:
how do I do this the best way. The documentation is a bit confusing. Do I need to make a new Oledbdataadapter object or? or can I use the existing one and then somehow write the sql statement "select * from persons where id = somevariable"

I am quite used to asp. But wonder a bit when it comes to vb can I write sql statements directly in the vb editor or do I need oledbdataadapters each and every time so that I can retrieve info from the database and in that case how do I get it to understand that only the id number that matches my varaile is what it should select

Thx you very much for any help






Similar Threads
Thread Thread Starter Forum Replies Last Post
USING SQL IF Statement in WHERE clause rit01 SQL Server 2000 17 March 15th, 2007 08:33 AM
SQL Where Clause sudarshan73 Crystal Reports 2 January 11th, 2006 10:01 AM
How To Print specific Web Control like datagrid. qadeerahmed Classic ASP Basics 0 August 15th, 2005 11:25 PM
Adding datagrid programmatically at a specific pos pankaj_daga ASP.NET 1.0 and 1.1 Basics 4 October 23rd, 2003 03:10 AM
How to simulate DISTINCT clause in SQL SERVER debsoft SQL Server 2000 6 June 30th, 2003 06:29 PM





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