he00273 wrote:
I have had a look at the tutorial "VS.NET: Design time databinding with windows forms"
I am using Infragistics Grid and I would like to display parent and child rows in the same grid.
If I dynamically bind the grid's datasource to a DataAccessAdapter it works ok.
How can I use an entity collection at design time which requires prefetched data?
I tried the following in the form load event handler
private void Form1_Load(object sender, EventArgs e)
{
PrefetchPath2 CommsPath = new PrefetchPath2((int)EntityType.CasesEntity);
CommsPath.Add(CasesEntity.PrefetchPathCommunicationsLog);
adapter.FetchEntityCollection(entityCollection1, null, CommsPath);
}
seems to work ok. Still feels like I am flying half blind.