Navigation & Login
Go Back   Invist Forums > Invist for Visual Studio > Support

Closed Thread
 
Thread Tools Display Modes

  #1  
Old 07.04.2009, 20:32
midiman midiman is offline
Neuer Benutzer
 
Join Date: 31.03.2009
Posts: 11
Unglücklich WPF Datagrid Databinding

Hi,

If I bind an WPF Datagrid to an EntityLoader Object an change the datagrid in Editmode, an Exception occurs: "EditItem" ist für diese Ansicht nicht zulässig. ("EditItem" is not allowed for this view).

What goes wrong?

BTW: is Mirkom.Invist.Client.WpfWindowPresenter the solutions for some WFP issues?

Last edited by midiman : 18.04.2009 at 20:40. Reason: [solved]
  #2  
Old 12.04.2009, 13:41
Mirko Mirko is offline
Administrator
 
Join Date: 09.12.2007
Posts: 41
Default Re: WPF Datagrid Databinding

No,

Mirkom.Invist.Client.WpfWindowPresenter is not the solution.

How have you bind the data to your grid?

Your Collection must be editable. If you bind the result of direct to the result of
the loader, the list is not editable.

Try to bind your grid to a editable list like List<>.

Code:
List<MyEntity> entities = new List<MyEntity>( myLoader.LoadEntities());
myGrid.DataSource = entities;
Does this work?
  #3  
Old 18.04.2009, 20:39
midiman midiman is offline
Neuer Benutzer
 
Join Date: 31.03.2009
Posts: 11
Default Re: WPF Datagrid Databinding

Hi Mirko,

Quote:
Originally Posted by Mirko View Post
Try to bind your grid to a editable list like List<>.
Thanx for this advice, that works fine!
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:03.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Invist is developed by: Mirko Meier