Home All Groups Group Topic Archive Search About

Hiding child rows in a datagrid

Author
2 Apr 2006 1:13 PM
al
Hi,

Is there any way of hiding child tables/rows in a windows form
datagrid. I'm using Vb.net and Visual Studio 2003.

thanks in advance

alan

Author
2 Apr 2006 5:26 PM
Jim Hughes
Set the grid datasource to a dataview or directly to a datatable contained
in a dataset.

Show quote
"al" <alan_o_rei***@yahoo.ie> wrote in message
news:1143983590.038918.201200@i40g2000cwc.googlegroups.com...
> Hi,
>
> Is there any way of hiding child tables/rows in a windows form
> datagrid. I'm using Vb.net and Visual Studio 2003.
>
> thanks in advance
>
> alan
>
Author
4 Apr 2006 2:36 PM
al
Hi Jim,

Thanks for the quick reply. Unfortunately that hasnt done it either. I
set the datasource of my datagrid to a datatable contained within the
dataset.
On loading data, I still get the plus(expand) symbol and I get can
click on the relationships between the tables and display data from the
related table in the same datagrid.

I think its a pretty useful thing but I dont want to confuse the
technology shy end user!

I havent used Dataviews (pretty new to vb.net) but maybe that will
work.

thanks again

alan

AddThis Social Bookmark Button