DataGridView Question - VB.NET 2005

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

Hi

I am starting to use this powerful controls but I am having a little problem

When I use ListView Control I could inherit the ListViewItem to add
additional members typically for the Row ID in the database some times of
more than 1 record (if the row contains related data from a number of
tables) then I had all this info attached to each row

How can I achieve anything like that in the DataGridView control?

thank you,
Samuel
 
Samuel said:
Hi

I am starting to use this powerful controls but I am having a little problem

When I use ListView Control I could inherit the ListViewItem to add
additional members typically for the Row ID in the database some times of
more than 1 record (if the row contains related data from a number of
tables) then I had all this info attached to each row

How can I achieve anything like that in the DataGridView control?

thank you,
Samuel

Assuming the DataGrid has its DataSource as a DataTable's DefaultView,
you would add another DataColumn to the DataTable and hide it:

DataSet.Tables(table).Columns(column).ColumnMapping() =
MappingType.Hidden


B.
 
I actually don't bind it

Samuel


Brian Tkatch said:
Assuming the DataGrid has its DataSource as a DataTable's DefaultView,
you would add another DataColumn to the DataTable and hide it:

DataSet.Tables(table).Columns(column).ColumnMapping() =
MappingType.Hidden


B.
 
Back
Top