473,385 Members | 1,373 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,385 software developers and data experts.

Using Table adapters and Grid Controls to update multiple tables.

I'm getting the hand of VS.2005 and ASP.net 2.0 by going through a bunch of
the video tutorials at ASP.net

The big change for me is using the actual IDE much more than I used to with
ASP.net 1.0. In the past, I tended to avoid a lot of the built in controls
and VS's WYSIWYG interface and tended to a lot of custom databinding and
stringbuilders and the like.

The demos I've been watching have been great and I've been surprised how
quickly one can build a fairly decent interface and business layer
completely within the GUI without writing any codebehind.

For instance, I've watched the 'to-do task list' demo to create a table that
stores my tasks, a TableAdapter to get and update the content of teh table,
and a GridView to show the data and allow a person to edit it. Works great.

I want to go a step further and not sure how to approach it. I'd like to
have one of the columns of my GridView bound to a different table. I want
two tables:

TASKS:
id
name
completed
developerID

DEVELOPERS:
developerID
name

I'd like the gridview to show id, name, completed, developer.name but when
in EDIT mode, I'd like the developer.name be a DDL list bound to the
DEVELOPERS table.

And that's where I'm not sure how to go about it using the IDE itself. I
don't see a asp:dropDownListField as being an column option within the
GridView.

-Darrel
Jan 30 '07 #1
0 1805

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

Similar topics

3
by: Paulb1us | last post by:
I want to update records from a csv file. I do this in a button click: //Create Adapters da = new OdbcDataAdapter("Select * FROM test.csv", conn); //Fill a data table da.Fill(dt);
6
by: Mark Kurten | last post by:
for some reason when i delete a row, the row doesn't get deleted from the acutal data table in SQL server. my code follows what am i missing? thanks. Dim row As DataRow Try
2
by: Joe Au | last post by:
I follow the Walkthrough documented on Visual Studio to create an editable data grid but it does not work on getting the value of the textbox in the data grid. The code is copied here. I mark...
9
by: jaYPee | last post by:
I have search a lot of thread in google newsgroup and read a lot of articles but still i don't know how to update the dataset that has 3 tables. my 3 tables looks like the 3 tables from...
3
by: CSharpguy | last post by:
I have a dataset that has 8 tables in it, (table, table1, table2, table3, ....) how can i have each table populate a seperate datagrid on my one web form without having to put 8 seperate datagrids...
0
by: gilbes | last post by:
I have been searching for a solution to this for a while now and everything I have found has lead me down the wrong path. Any assistance you guys could give would be much appreciated. I would...
2
by: DC | last post by:
Hi, I am using a GridView to present data in a DataTable, which I store only in ViewState and when the user hits the "OK" button the rows in the DataTable will be used to execute transactions. ...
3
by: Bogdan | last post by:
Hi, I've been struggling subqueries/joins and table adapters for some time and can't find a clear answer. I have a stored procedure that returns columns from 2 tables. Two columns from the...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.