![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Richard, The TableAdapter is a table based DataAdapter, which can only populate 1 DataTable data. If you need to configure the column mapping in the TableAdapter in the DataSet designer, you can simply change the column name. The columnn mapping code will be generated automatically. HTH. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Richard, Sorry, but I'm a little confused. Are you using a DataAdapter to fill data or a TableAdapter to fill data? A TableAdapter cannot return multiple result sets. Only the first one will be returned. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hi Richard, As you know, the TableAdapter will only fill data to one DataTable. To fill multi-table DataSet at once, you still have to use the DataAdapter. If you drag and drop a DataAdapter to the designer, you can also use the designer to set TableMappings. However, TableAdapter cannot achieve that since it's single table based, which is by design. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#8
| |||
| |||
|
|
You say "drag and drop a DataAdapter to the designer". How do you do this. My toolbox only has a TableAdapter (and a Query, a DataTable and a Relation). "Kevin Yu [MSFT]" wrote: Hi Richard, As you know, the TableAdapter will only fill data to one DataTable. To fill multi-table DataSet at once, you still have to use the DataAdapter. If you drag and drop a DataAdapter to the designer, you can also use the designer to set TableMappings. However, TableAdapter cannot achieve that since it's single table based, which is by design. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#9
| |||
| |||
|
|
When you use the Data Source Configuration wizard (DSCW) to create a strongly typed DataTable (exposed as a "TableAdapter"), you can drag from the Data Sources window to a Form design surface--not from the Toolbox. hth -- ____________________________________ William (Bill) Vaughn Author, Mentor, Consultant Microsoft MVP INETA Speaker www.betav.com/blog/billva www.betav.com Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights. __________________________________ "Dick" <Richard.Giles (AT) nospam (DOT) nospam> wrote in message news:1A8E9F42-FFA5-4A97-9757-3DEFAB5EDD14 (AT) microsoft (DOT) com... You say "drag and drop a DataAdapter to the designer". How do you do this. My toolbox only has a TableAdapter (and a Query, a DataTable and a Relation). "Kevin Yu [MSFT]" wrote: Hi Richard, As you know, the TableAdapter will only fill data to one DataTable. To fill multi-table DataSet at once, you still have to use the DataAdapter. If you drag and drop a DataAdapter to the designer, you can also use the designer to set TableMappings. However, TableAdapter cannot achieve that since it's single table based, which is by design. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#10
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |