1

I have a class that interacts with a tableView. I have multiple pages in my program that uses this class/control. Problem was I was using List<> in this class to assign it to the itemsource. Later on I noticed I had to use BindingLists instead of Lists in order to be able to edit in the table for the end user.

Since I'm using different type of objects now I'm getting a lot of errors saying that it cannot implicitly convert to BindingList<object>, e.g.

Error   14  Cannot implicitly convert type     'System.ComponentModel.BindingList<Entity.Employee>' to     'System.ComponentModel.BindingList<object>'  ...\frmMainWindow.xaml.cs

Which is really weird because it worked quite fine when I was using List. I cannot declare the BindingList as Employee since I'm using more types.

Is there a way to still use BindingLists<> and works well like Lists<>?

EDITION:

List<vCalendarPeriod> temp_list = RPTDAL.Get_CalendarPeriodByCalendarName_View("Monthly");
BindingList<vCalendarPeriod> temp_blist = new BindingList<vCalendarPeriod>(temp_list);
catalogGridAdministrationCalendarsMonthly.ItemsSource = temp_blist;

The error is marking temp_blist, and the error is the one i described earlier.


when using rufus, Resque or whenever scheduler and what are the weaknesses and strengths of them?

I'm a new member of ruby on rails, and i'm researching for job schedulers in rails, but i am quite confused because having many schedulers such as rufus, whenever, resque.... Could you show me some information, documents or advice ? thank you so much!

4

0 回答 0