Home All Groups Group Topic Archive Search About

Cannot change columns in datagrid when viewing child records

Author
4 Apr 2005 8:36 PM
jwogick
I'm hoping someone can help me!
I just have a simple form with a datagrid displaying child records
from a dataset that contains two related tables Parent
table>Clients Child table>cases. using the designer I tell the
datagrid to display the child records only from the dataset (Relation
called ClientsCases table>cases) it will display the data fine but
when I add a new tablestyle with custom columns it does not change
the columns in the datagrid from the default.
However if I display a non related table in the datagrid then I can
customize the columns no problem.
I've read all over the net looking for the answer. I've come to the
conclusion that the columns in the datagrid control can only be
customized when you are not displaying child records. Unless someone
can tell me otherwise!
Posted at: http://www.groupsrv.com

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------       
                http://www.usenet.com

Author
6 Apr 2005 4:20 AM
Chris
take a look at
www.datagridgirl.com there are a lot of good examples there

Show quoteHide quote
"jwogick" <jwog***@aol-dot-com.no-spam.invalid> wrote in message
news:4251a536$1_3@127.0.0.1...
> I'm hoping someone can help me!
> I just have a simple form with a datagrid displaying child records
> from a dataset that contains two related tables Parent
> table>Clients Child table>cases. using the designer I tell the
> datagrid to display the child records only from the dataset (Relation
> called ClientsCases table>cases) it will display the data fine but
> when I add a new tablestyle with custom columns it does not change
> the columns in the datagrid from the default.
> However if I display a non related table in the datagrid then I can
> customize the columns no problem.
> I've read all over the net looking for the answer. I've come to the
> conclusion that the columns in the datagrid control can only be
> customized when you are not displaying child records. Unless someone
> can tell me otherwise!
> Posted at: http://www.groupsrv.com
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
>    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
>                http://www.usenet.com