|
-
Feb 18th, 2003, 05:47 AM
#1
Thread Starter
Addicted Member
Append rows and sort
Hi,
I have a dataset from a SQL view. In the ASP .NET code I have appended a few rows to the dataview temporarily. I then want to sort it on a couple of fields and present it through a datagrid.
However, no matter what I try it will not sort!
e.g.
With SqlDataAdapter
.Fill(DsStats1)
End With
'create new row in code
DsStats1.vwStats.Rows.Add(RowNew)
vwStats = DsStats1.Tables("vwStats").DefaultView
vwStats.Sort = "Area"
datagrid1.DataSource = vwStats
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|