Home All Groups Group Topic Archive Search About

Does sorting a dataview cause its datatable to change

Author
4 May 2007 1:17 PM
Jerry J
If I sort a dataview using dataview.sort = "sort string", can the
dataview.table change?

--
Jerry J

Author
4 May 2007 2:17 PM
Miha Markic
No, sorting dataviews doesn't change the underlying table in any way.
However, note that when you bind DataTable you are actually binding
DataTable.DefaultView.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Show quote
"Jerry J" <Jer***@discussions.microsoft.com> wrote in message
news:E04EF191-8D1E-4FCF-8C15-15E11DDAA3F9@microsoft.com...
>
> If I sort a dataview using dataview.sort = "sort string", can the
> dataview.table change?
>
> --
> Jerry J

AddThis Social Bookmark Button