all groups > dotnet ado.net > october 2003 >
You're in the

dotnet ado.net

group:

DataView Columns



DataView Columns Karl Napp
10/31/2003 6:40:33 PM
dotnet ado.net: Hi NG,

how to make a DataView show only selected COLUMNS?

E.g:
DataTable table // is already in memory and has two columns: "id" and
"value"
DataView view // should only show all rows from "value"


TIA,
KN

x-post & f'up to .adonet

RE: DataView Columns Sunder NO[at]SPAM Online.microsoft.com
10/31/2003 10:19:16 PM
Hi Karl
We cannot Filter Columns with DataView . There are 2 ways you can Achive
this Using TableStyles and ColumnStyles of Datagrid or you can Hide the
Columns In Dataset
If you have a Instance By Name Dataset11 and You have Authors Table from
Pubs DB , You can Hide the Phone COlumn Like this
DataSet11.authors.phoneColumn.ColumnMapping = MappingType.Hidden

Thanks
Sunder
VB.Net
--------------------
[quoted text, click to view]
microsoft.public.dotnet.framework.adonet,microsoft.public.dotnet.framework.a
spnet
[quoted text, click to view]
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP09.phx.gbl
[quoted text, click to view]
Re: DataView Columns Karl Napp
10/31/2003 11:23:52 PM
[quoted text, click to view]

Nevertheless it still seems to appear. Any further setting that needs to be
changed?

TIA,
KN

AddThis Social Bookmark Button