Sorting on a datagrid?

T

Tavish Muldoon

Help!

I am trying to write an ASP.NET app.

I have a Jet (Access) database file which is read in by a dataadapter
(daTracks). I have bound that to a data grid (dgTracks). Using the
property builder, I allowed sorting.

The table has 6 fields Author, Duration, Musicians, Track Name, Track
ID, Track Number.

I want all to be sortable. But what do I put down in the code behind
to make this work?

I noticed a sort method for the datagrid (dgTracks):

dgTracks_SortCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridSortCommandEventArgs) Handles
dgTracks.SortCommand

But I am not sure proceed from here.

Suggestions? Examples?

Thanks,

Tmuld.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top