User Profile

Collapse

Profile Sidebar

Collapse
joelzn
joelzn
Last Activity: Oct 31 '08, 11:34 AM
Joined: Oct 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I was going about it the wrong way, here is the solution:

    I removed the for loop and did this:

    Code:
            DataView dv = dsResults.Tables[RESULT_TABLE].DefaultView;
            dv.Sort = "JobId ASC";
            dgridResults.DataSource = dv;
            dgridResults.DataBind();
    See more | Go to post

    Leave a comment:


  • joelzn
    started a topic Sorting DataGrid using Table.Select() DataRow Array
    in .NET

    Sorting DataGrid using Table.Select() DataRow Array

    I have a hand built dataset where some columns come from a sql database and others are calculated and eventually I will have two different query results going into one table because its impossible for me to get all the data w/one query.

    The problem I need help with is getting the DataGrid to reflect changes from a sort.

    The foundRows DataRow array contains correctly sorted rows (verified), but I can't get the table updated...
    See more | Go to post
No activity results to display
Show More
Working...