Cgridview Of Stored Procedure Result Set

I generated a CGridView of Stored Procedure Result Set which is their in Model Class. But can’t able to perform filter or sorting operations on grid view. Can any one help in this.