pls help: Datagrid Problem

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

Hello,

In my application I have three container classes (custom business entities):
Order, Customer, Order Details. Each class has CRUD behaviors where it
retrieves, updates, creates... by interacting with a MSDE DB. The
application allows the user to input data in multiple forms from there is
goes to a Results Form where the user can print reports. On the Results
Form I want to put a grid to display that current Order the user inputed in
the previous screens. I have trouble coming up with a design to combine
pieces from each custom container class. I was thinking about using a typed
dataset or maybe another custom class that implements IList. Any
suggestions?

Thanks
 
Hi dan
you didn't specify exactly what are the data that you wan to collect from
other forms that compined make the new order " what are there types" but
since you are using MSDE DB , i would assume you use datatable object " or
a dataset " to get data from the database .... why don't you create a new
datatable object , and istead of creating new columns to that table you
would just add referce to the existing columns "on the other table " that
you want to be included into your new table .... then you bind this new
table to the datagrids , i don't know if this match your design or not but
i can be more helpful if you explain exactly what are these data that you
want to get and what are there types .... any way , i hope that wold help
you solve the problem.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Thanks for the post. The data I want to display is not from the database
but rather from the user. The user will input data into 5 forms and I want
to take pieces of that data and display it in a data grid. Currently, I am
using custom classes to store the user data where the class has basic CRUD
db methods. I am looking at maybe using a typed dataset to display to the
grid. However, I rather not pass it around unless I have to. Any ideas?

Thanks
 
Back
Top