Re: DataGridView Question - VB.NET 2005

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Samuel Shulman wrote:
I actually don't bind it

Samuel


"Brian Tkatch" <Maxwell_Smart@xxxxxxxxxxxxxxx> wrote in message
news:1151593790.964053.160700@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Samuel Shulman wrote:
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.


Setting a DataSource on a Windows Form DataGrid does not require a
binding.

B.

.



Relevant Pages

  • Re: DataGridView Question - VB.NET 2005
    ... Samuel Shulman wrote: ... How can I achieve anything like that in the DataGridView control? ... Assuming the DataGrid has its DataSource as a DataTable's DefaultView, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DataGridView Question - VB.NET 2005
    ... Samuel Shulman wrote: ... How can I achieve anything like that in the DataGridView control? ... Assuming the DataGrid has its DataSource as a DataTable's DefaultView, ...
    (microsoft.public.dotnet.languages.vb)
  • Which list control to use
    ... In VB.NET I made an extensive use of the ListView Control ... I also need list control for editing and what is the recommended for that ... Samuel Shulman ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Display 1 data row as multiple datagrid rows
    ... I have written a custom control before, ... isn't intuitively obvious how to easily extend the Microsoft datagrid to do ... horizontal scrolling is consider bad design. ... wrap too and allow for sorting of any column it's practical to sort on. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET limitations?!?
    ... displaying 1000s of rows in a single DataGrid may not be the best way ... the control as well, ... "Milan Todorovic" wrote in message ... When I understand the reason ...
    (microsoft.public.dotnet.framework.aspnet)