Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datasets
Message
De
21/11/2002 12:00:19
 
 
À
18/11/2002 14:03:40
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00723885
Message ID:
00725309
Vues:
10
Jim,

>>Could I create a table in the typed dataset with the fields I want and then fill that table from a stored procedure?<

I've been staying away from questions about grids and asp.net, since I've not used either, but this is also a data question, so maybe I can answer at least that part of it. <g> You *can* add a table to your typed DataSet and fill it from a SP . You can also set relations in your DataSet, but that is something that I haven't messed around with yet, so I can't give you any specifics.

Anyway, not much help I know.

~~Bonnie


>Could I create a table in the typed dataset with the fields I want and then fill that table from a stored procedure?
>
>Jim
>
>>You can still use typed dataset but the fields will come from two tables instead of just one. You can create relations between datatable within a dataset but It would not be as easy. Also, I am not sure if you can display data on the same datagrid row from two different related tables.
>>
>>
>>>So I should do that instead of using a typed dataset? Is there a way to set a relation in the dataset? Would that be a better way?
>>>
>>>Jim
>>>
>>>>The easiest would be to join both tables in a SQL to create a single data table and bind it to the grid.
>>>>
>>>>>All,
>>>>>
>>>>> I have a web application that uses a typed dataset. I want to retrieve fields from two different tables in the dataset and display them in a grid. What is the best way to do this?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform