473,379 Members | 1,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

How to do this? Datagrid, Dataset, sql query

Mat
I have typed dataset in applications, which contains table A(ID,name) ,
B(ID,A1, B1,B2)
Table B has columns A1 as foreign key ,primary key of table A

i want to bind dataset or dataview to datagrid which will be exactly the
same thing like
"select A.name, B.B1, B.B2 from A left join B on A.ID=B.A1"
This query select everything from table A and only values from table B which
match the conditions.

But i don't know how to make such a select using dataview ,dataset or
whatever and bind to datagrid

I don't want to use a select query to querie database because i have all
data in dataset and only this part is making problem.

Thanks you for help
Nov 20 '05 #1
1 1140
Cor
Hi Mat,

Have a look at:

SQLdataadapter or OledbDataadapter
and to
SQLcommandbuilder or OledbCommandbuilder

I hope this helps,

Cor
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: hennovanrensburg | last post by:
Hi all, I've noted a couple of posts regarding the speed of a datagrid in a ..net win app. My datagrid consists of 37 rows and 12 cols, and is unacceptably slow. How can this be? Should I...
5
by: Sanddevil | last post by:
Hi there - I hope someone out there can help me! I'm using a .Net DataGrid Class to show the results of a SQL query in a spreadsheet type control. The code, which works fine is: iRowCount =...
2
by: Stephan Bour | last post by:
Hi, Ičve tried to implement a solution to populate a dropdownlist inside an editable datagrid. The code is simple enough and an example can be found here:...
4
by: Paul | last post by:
I sometimes get a timeout error when populating my datagrid, the code is WizardConnection.Open() UpdateCommand.CommandText = "EXECUTE sp_assign_user '" & PhysOffice.SelectedValue & "', '" &...
1
by: Alex Maghen | last post by:
I have a DataGrid on my ASPX and I'm confused about the interaction with the page based on whether the page is just loading or is being reloaded with a call to the SortCommand of the DataGrid: ...
8
by: wk6pack | last post by:
Hi, I have a datagrid that is populated from a query in SQL Server. The first time I run the form, it appears, I make changes or view it and it is fine. When I close the form and open it up...
1
by: Jonathan | last post by:
I am new to Datagrids and asp.net (VB). In the sample code below, how do I set the Datagrid widths of the 4 columns I have from the query I have in the in the Access database? </head> <%@...
2
by: Jonathan | last post by:
In the sample code below, how do I make the various text items in a datagrid column have a clickable hyperlinks? e.g. Ford Mustang should be a link to www.mysite.com/mustang.htm </head>
3
by: Jonathan | last post by:
In one of the 4 output columns of my Datagrid, I have a Yes/No Boolean field. I'd like to show a graphical tick (e.g. tick.jpg) or a cross e.g. (cross.jpg) instead of True/False or Yes/No. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.