Re: DataGridView Bug or Design Flaw?
Tech-Archive recommends: Speed Up your PC by fixing your registry
The datagridview works best/easiest to manipulate when the datasource is
based on a dataTable. So instead of adding columns to the datagridview
you can add columns to the dataTable and massage your data there:
Dim dt As DataTable
dim col1 As DataColumn
...
dt.oolumns.Add(col1)
...
datagridview1.datasource = dt '--this automatically create all the
columns from the dataTable
For information on creating dataTables from code and adding data there
is good documentation in the VS2005 Help system.
Rich
*** Sent via Developersdex
http://www.developersdex.com ***
.
Relevant Pages
- DataTable Binding with DataGridView -- Doco Example Needs Work
... In my wonderings about Bindings and DataGridView I came across what ... the DataTables are to be bound to a DataGridView object. ... private void MakeDataTables() ... // Declare variables for DataColumn and DataRow objects. ... (microsoft.public.dotnet.languages.csharp) - Re: Sorting of DataGridViewComboBoxColumn type columns
... project for awhile, and the DataGridView is one complex critter, so I may be ... DataTables to do this, perhaps even a custom View from the DataSet. ... Do I need to databind to a dataView with the sort? ... nvx wrote: ... (microsoft.public.dotnet.framework.windowsforms) - Re: Sorting of DataGridViewComboBoxColumn type columns
... project for awhile, and the DataGridView is one complex critter, so I may be ... DataTables to do this, perhaps even a custom View from the DataSet. ... Do I need to databind to a dataView with the sort? ... Right now I am using a single DataTable for the binding to the grid and ... (microsoft.public.dotnet.framework.windowsforms) - Incremental search
... I'm trying to do incremental search in my DataTable with TextBox and DataGridView. ... I have a DataSource with more DataTables. ... Depending wich TextBox has the focus I do the incremental search on the related DataTable to the TextBox. ... (microsoft.public.dotnet.framework.adonet) - Re: Unterformular in VB2005 Standard
... RechnungPositionen) habe ich hinbekommen. ... DataTables mit zugehörigen DataView-Objekten. ... -> DataGridView Relation ... (microsoft.public.de.german.entwickler.dotnet.vb) |
|