Calculated Columns in a DataGrid

G

Guest

Visual Studio 2003 .Net C#

I have a DataGrid showing my Job table. Some of the fields in this table
are ID's linking to other tables for the displayable value. i.e. I store the
ID 1003 in the Job.JobStatus field, which links to the JobStatus table, which
holds this ID and a Description such as "Complete". In the DataGrid I want
to go get this value and show that description rather than the ID field.

What is the best way of doing this kind of thing? At the moment my DataGrid
is bound to a Typed DataSet for the Job table. Should I have created some
kind of bespoke DataSet for this datagrid, and populate it when this screen
loads?

Thanks

Ste
 
G

Guest

ok, so I are you saying that I should create a datatable at runtime, populate
it from the dataset I already have, plus the extra description fields, and
then bind my grid to it?

Thanks

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top