Re: sorted table or view
From: sam (sri_san_at_mailcity.com)
Date: 09/15/04
- Next message: Gerald Hernandez: "Re: Installing VS6 After VS.Net 2003"
- Previous message: Javelin: "Re: Ordering Method Calls from Event Firing"
- In reply to: sam: "sorted table or view"
- Messages sorted by: [ date ] [ thread ]
Date: 15 Sep 2004 08:27:08 -0700
Hello Group,
I believe, i need to clarify some of my concepts.. When I
assign a table to a dataview, the order of data contained in the
dataview is the same as the data in the dataview after the sort(when I
step thru the rows). But the datagrid(dgwip) displays the data in a
sorted order. Consider the code below"
dvWIP = New DataView(dsWIP1.Tables(1) -- (1)
dgWIP.DataSource = dvWIP
dvWIP.Sort = Me.SortColumn & " " & Me.SortOrder
dgWIP.DataBind() -- (2)
I dont see any difference in the dataview when stepped thru the rows.
Is that true?
Thanks,
Sam.
sri_san@mailcity.com (sam) wrote in message news:<5ca7db4a.0409090552.58927b3e@posting.google.com>...
> Hello group,
> The datagrid is sorted using a dataview. Can I get the
> sorted dataview or table from the datagrid or any other way. All I
> need to get is the sorted data. Here is my code and what I am trying
> to accomplish:
> The datagrid is sorted using:
>
> dgWIP.DataSource = dvWIP
> dvWIP.Sort = Me.SortColumn & " " & Me.SortOrder
> dgWIP.DataBind()
> Now, I need to manipulate the sorted data as the order of the rows is
> important to me. How do i get the sorted data into a
> variable(datatable/view)? I tried doing something like :
> dt = dvwip.table
> and stepped thru the code but the dt(table) has the rows in the
> original order. Any help would be great!!
>
> Thanks,
> Sam.
- Next message: Gerald Hernandez: "Re: Installing VS6 After VS.Net 2003"
- Previous message: Javelin: "Re: Ordering Method Calls from Event Firing"
- In reply to: sam: "sorted table or view"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|