I have established a linq connexion with my database with this code behind.
And with manually set paging for 10 records.
data is shown in ListView.
How do I get the header sorting I'm using a linkbutton. Also I want to be able to insert a dropdownlist in the header. How do I receive this functionality.
With thanks in advance.
privatevoid DisplayData(int startRow)
using (Origo.Vefur.Linq.dbMainDataContext db = new Linq.dbMainDataContext(Origo.WMMain.Helpers.Global.ConnectionString))
var empList = from el in db.owm_USERs
where el.showOnWeb == 1select el;
ListView1.DataSource = empList.Skip(startRow).Take(10);