Get current logged user in list event receivers?

Leave a comment

SPUser user = properties.Web.CurrentUser;

Sort Datatable values in Ascending Order

Leave a comment

NameSpace:  System.Data

We need to use DataView.Sort Property

Let us consider you already have a Datatable dt with some content in it and you want sort it in ascending order by the column Rollno


DataView dvt=new Dataview(dt);

dvt.sort=”RollNno ASC”;

//then again assign that view to datatable dt.



%d bloggers like this: