hi ,
I have a Radgrid that work correctly with a 2 level details ,i have to add a "publipersonne" detail table to my personne table detail ()case n° 2 ) , the first case for first level is OK and the detail table is showed , the second case worked too and the datasource is affected ( i can see it in debugging ) but the web page show an error :
my DataKeyNames is in the datasource and affected .
thank's for reply .
}
I have a Radgrid that work correctly with a 2 level details ,i have to add a "publipersonne" detail table to my personne table detail ()case n° 2 ) , the first case for first level is OK and the detail table is showed , the second case worked too and the datasource is affected ( i can see it in debugging ) but the web page show an error :
There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource. |
thank's for reply .
protected void GridPJ_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
switch (e.DetailTableView.Name)
{
case "Personne":
{
string numcompte = dataItem.GetDataKeyValue("NumCompte").ToString();
//
e.DetailTableView.DataSource =
IHMProxy.SelectPersonneUSData(new CSSearchPersonne
{
NumCompte = numcompte
});
break;
}
case "publiPersonne" :
string numPersonne = dataItem.GetDataKeyValue("NUM_PERS").ToString();
//
int i = e.DetailTableView.DetailTables.Count;
e.DetailTableView.DataSource=
IHMProxy.selectPubliPersonne(numPersonne);
break;
}