I have found the solution ,
you need to register this code within the CallingDataMethod GridView event :
protected void GridView1_CallingDataMethods(object sender, System.Web.UI.WebControls.CallingDataMethodsEventArgs e)
{
e.DataMethodsObject = this;
}
and every thing will work fine
thanks