Display results in datagrid

J

James Goodman

I have a form with three controls, a button and a datagrid.

The grid is bound to a dataset table.

When the button is pressed, a new row is added to the dataset table.

The datagrid table contains 3 int columns, plus an identity column. 2 of
these int columns are FK's to lookup tables.

In the SQL for the table I used an inner join to the lookup tables so grid
becomes populated with the data I want them to see (i.e. text not numbers).

When I insert the new row, because the row is uncomitted, the text columns
display as null. Once the new rows are comitted they display as expected.

I can understand why this happens, but are there any simple workarounds for
this, so I can display the data I want?
 
E

Earl

Not to be catty about an answer, but there is never a simple solution with a
JOINed query bound to a datagrid. If you are using it solely for display
purposes, I could see it, but anything requiring an insert or an update is
only going to lead to grief. You probably want to google some previous
issues on this.
 

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

Similar Threads


Top