E
Emma Burrows
I have a typed dataset which imports a table from an Access database. In the
VS 2005 designer, I have added a column to this table (imaginatively
entitled Column1), and entered an expression using the Properties dialog.
When I run any of the queries in the TableAdapter while I'm still in the
designer, Column1 appears, with the result of the expression as expected.
However, when I try to use Column1 in my actual code, its value is always
the default value. It feels as though there's something else I'm supposed to
do, but Google has returned nothing - just examples of how you add a column
like this in the designer and, hey presto, it works (except in my case, it
doesn't). So suggestions are welcome...
(Actually, I was hoping to sort the table based on the computed column, so
if there are any better suggestions for that, they'd be welcome too)
VS 2005 designer, I have added a column to this table (imaginatively
entitled Column1), and entered an expression using the Properties dialog.
When I run any of the queries in the TableAdapter while I'm still in the
designer, Column1 appears, with the result of the expression as expected.
However, when I try to use Column1 in my actual code, its value is always
the default value. It feels as though there's something else I'm supposed to
do, but Google has returned nothing - just examples of how you add a column
like this in the designer and, hey presto, it works (except in my case, it
doesn't). So suggestions are welcome...
(Actually, I was hoping to sort the table based on the computed column, so
if there are any better suggestions for that, they'd be welcome too)