Hello,
If I bind my grid control with a System.Data.DataTable object by code behind there is no problem:
this.GdCuentas.DataSource = EA.ObtenerTabla(tipoEntidad);
this.GdCuentas.DataBind();
But, if I bind my grid control by WebMethod and WebMethodAdaptor it doesn't work:
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public static object GetRecursos(Syncfusion.JavaScript.DataManager value,Guid idPadre, string sesion)
{
DataResult result = new DataResult();
SAVE.SAVEDMDB.Sesion.EscenarioAbierto EA = System.Web.HttpContext.Current.Session[sesion] as SAVE.SAVEDMDB.Sesion.EscenarioAbierto;
SAVE.SAVEDMDB.DataModel.DsEscenario.RecursosDataTable RDT = EA.ObtenerTabla(SAVE.SAVECommon.TipoEntidad.Recursos) as SAVE.SAVEDMDB.DataModel.DsEscenario.RecursosDataTable;
result.result = RDT;
result.count = RDT.Rows.Count;
return result;
}
Why?
Thanks!