Re: How do I...

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



Ok, how do I specify which columns to include in the DataView? Oh, and
thanks for your patience with me!

"Cor Ligthert" <notmyfirstname@xxxxxxxxx> wrote in message
news:uCPAdIVeFHA.2548@xxxxxxxxxxxxxxxxxxxxxxx
> Bryan,
>
> It was confusing for me as well in the beginning.
>
> Every datatable holds a dataview which is named the defaultview.
> However you can use it to set by instance the sort order of a datatable in
> a dataview
>
> dt.defaultview.sort = "MySortColumn"
>
> is the same as
> dim dv as dataview = dt.defaultview
> dv = "MySortColumn"
> (and use than dv)
>
> div dv as new dataview(dt)
> dv = "MyOtherSortColumn"
>
> Means that you use an extra dataview and can show the datatable on two
> different controls in two different sort orders
>
> I hope that this gives an idea
>
> Cor
>
>


.


Quantcast