Sorry for misunderstanding I solve the problem as follows
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
EnablePaging="true" TypeName="Domain.Abstract.IGradesRepository"
SelectMethod="GetGrades" SelectCountMethod="GetGradesCount" OnObjectCreating="ObjectDataSource1_ObjectCreating"
StartRowIndexParameterName="StartRowIndex" MaximumRowsParameterName="MaximumRows">
<SelectParameters>
<asp:ControlParameter ControlID="SearchTxtBox" Type="String" Name="SearchKeyWord" PropertyName="Text" />
</SelectParameters>
</asp:ObjectDataSource>
and Web.Admin.Grades.cs:
[Inject]
public IGradesRepository _Grades { get; set; }
protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
{
e.ObjectInstance = _Grades;
}