Well I am using datagrid in my asp.net application and also am paging it. There are 10 records on a page. Sorting can be done using any of the columns. I want to incorporate functionality so that sorting will be done for that page alone where column has been clicked not for entire recordset which is the case at present. For e.g. if i click to sort on page no2 the it will sort whole recordset but i want sorting to be restricted to those 10 records on page 2. kindly post back the solutions at vineet.agarwal@wipro.com . Thanks in advance