On Tue, 27 Jul 2004 14:03:31 -0700, "Peter Brunone"
<[EMAIL PROTECTED]> said:

>    FWIW, this is what I do to sort a datasource in VB:
> myDV = mySet.Tables("BunchaDates").DefaultView
> myDV.Sort = "Year"
> myGrid.DataSource = myDV
> myGrid.DataBind()
>    It appears that your problem lies in the way the class passes
> the DataTable/DataView around.


Thanks.  Your code gave me some ideas, and now I have it working.


public DataView Bind()
{
  DataView dv = new DataView(Customers, "", "lastName",
  DataViewRowState.CurrentRows);
  return dv;
}



---------------------------------------------
Francesco Sanfilippo   Blackcoil Productions
---------------------------------------------
http://blackcoil.com       http://url123.com
---------------------------------------------



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to