Hi folks,
I have this ASPxGridView which is working fine. When I put it in a ASPxPageControl (a tab control) it will not update or delete, but will insert.
If i move it outside of the page control it work fine.
I've been debugging what's happening when I attempt to delete and followed it up to LLBLGenProDataSourceView2.ExecuteDelete
The opening if statement is returning true
(source code courtesy of Lutz)
protected override int ExecuteDelete(IDictionary keys, IDictionary oldValues)
{
if (((this._adapterToUse == null) || (this._containedCollection == null)) || (this._containedCollection.Count <= 0))
{
return 0;
}
The if succeeds and zero is returned. This occurs because this._containedCollection.Count is zero.
Does anyone have an idea about why this is happening? Most likely it's state related, I have had other state problems in conjunction with callbacks but resolved them by setting the cachelocation for the datasource to Session.
I can't seem to spot where _containedCollection is supposed to be populated in the delete operation, only place I've found is LoadState... but I'm at my limit of understanding now... [
]
Love how devexpresses own controls are incompatible with one another... another day, another 4 hrs wasted on devexpress sigh