Groups | Blog | Home
all groups > dotnet windows forms databinding > july 2004 >

dotnet windows forms databinding : Hiding a column


Claire
7/15/2004 12:15:40 PM
Newby c# user.Sorry, Ive already looked through google but not found an
explanation.

I create an in-memory DataTable plus set of DataColumns plus a DataSet. I
dynamically add my rows to the table which is bound to a datagrid and it all
works fine. But I don't want all of the columns to be visible.
In my search I found out about columnmappings and a DataAdapter object, but
the help file said the DataAdapter was for binding a dataset to an real
database (and gave examples for more than I need/understand) - which I don't
want to do.
If Im to use a DataAdapter then how do I set it up so that I just use it for
column mappings on my little dynamic table?

thanks
CC

Claire
7/15/2004 2:15:07 PM
Ive sorted it thanks, a lot easier when you find the right example
AColumn.ColumnMapping = MappingType.Hidden;



AddThis Social Bookmark Button