Brad,
Although it are different classes are all the DataClasses thight connected
to each other. Therefore to help you I have to know what kind of datagrid.
(And if it is a GridView I cannot give you all the information just because
I don't know it yet).
However.
The dataview is the same as the inbuild DefaultView property from a
DataTable. It gives a view on the rows of that table, in fact it has a
rowfilter and a sort property in it.
A benefit is that you can create more views on a table yourself. The
dataview holds as well a lot of information itself. In Net 2.0 you can copy
the rows in the DataView to a new DataTable only containing the filterend
views with the method .ToTable. In Net 1.x you have to go thru the rows from
the dataview for that using than (because a datarow cannot have more
references than one to a table), the method DataRow.ImportRow.
Maybe is this the key for your problems with the DataView. A datarow holds
no information about the columns it contains. The ColumnsInformation is
written in the ColumnCollection from a DataTable. So if the DataView needs
information about a column it uses, than there has to be done internally:
DataRowView->DataTable->ColumnCollection.
Here a very simple sample with a dataview which hide a column on our
website.
http://www.vb-tips.com/default.aspx?...3-a3539697edbd
the datatable.defaultview is the same as
dim datatable as new datataview(dt)
where the last is an extra filter.
I hope this gives some ideas
Cor
"Brad Rogers" <(E-Mail Removed)> schreef in bericht
news:Vzetf.28$yW1.11@trnddc05...
> Cor,
>
> I was wondering about columns, I thought there was only 1 grid view
> control,
> the one found in winforms in the designer view. It doesnt matter how its
> displayed.
>
> The important part here is the DataView itself
>
> Its not in my textbooks so I cannot easily read up on it. I do have
> examples on making the .mdb connection and dataset. So In memory Ive got
> the Dataset.
>
> I could make a new table in Access with just those 2 columns? but thats
> not
> allowed.
>
> So now it looks like Ive got to copy across selected columns from the
> table,
> and make a new table.
>
> Lets say I make a new table with 2 columns. Now I want to fill those with
> the columns they represent from the Master column. How is this done??
>
> Do I have to use recursiveness or recursion to say master table
> column(3).row(x) = secondtable column(0).row(x) ??
>
> There is no smart FILL routine?
>
> Im not familiar with asp.net but hopefully soon.
>
> "Cor Ligthert [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Brad,
>>
>> You cannot use the dataview to select columns.
>>
>> However to give you a further answer it has to be clear what kind of grid
>> you are using because I become confused about that in your answer.
>>
>> A GridView for ASPNET
>> A DataGrid WindowsForm
>> A DataGridView
>> A DataGrid for ASPNET
>>
>> I assume it is a GridView for ASPNet with which I have no expirience yet.
>>
>> Cor
>>
>>
>
>