Hello.

I retrieve a dataset from a database and assign the table in the dataset to
a datagrid. Then I call the datagrid's "Refresh" method.

I want to show only a subset of columns in the grid with the excluded
columns bound to other controls (textbox, etc.)

How can I limit the columns displayed in the datagrid without removing the
columns from the table?

Thanks in advance,

Mike

Re: Show subset of columns in Datagrid by MikeL

MikeL
Wed Mar 01 09:08:53 CST 2006

Nevermind. I found it: TableStyles.

"MikeL" <milop@slomins.com> wrote in message
news:uhF7fiTPGHA.3016@tk2msftngp13.phx.gbl...
> Hello.
>
> I retrieve a dataset from a database and assign the table in the dataset
> to a datagrid. Then I call the datagrid's "Refresh" method.
>
> I want to show only a subset of columns in the grid with the excluded
> columns bound to other controls (textbox, etc.)
>
> How can I limit the columns displayed in the datagrid without removing the
> columns from the table?
>
> Thanks in advance,
>
> Mike
>