HighTechTalks DotNet Forums  

Does sorting a dataview cause its datatable to change

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss Does sorting a dataview cause its datatable to change in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jerry J
 
Posts: n/a

Default Does sorting a dataview cause its datatable to change - 05-04-2007 , 08:17 AM







If I sort a dataview using dataview.sort = "sort string", can the
dataview.table change?

--
Jerry J

Reply With Quote
  #2  
Old   
Miha Markic
 
Posts: n/a

Default Re: Does sorting a dataview cause its datatable to change - 05-04-2007 , 09:17 AM






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/

"Jerry J" <JerryJ (AT) discussions (DOT) microsoft.com> wrote

Quote:
If I sort a dataview using dataview.sort = "sort string", can the
dataview.table change?

--
Jerry J


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.