M
MarcG
I am using a bindingsource as the datasource to a datagridview. In the
bindingsource properties, I set DataSource to "TaskSchedule", a class derived
from List<ScheduleItem>. I perform all schedule operations
(add/delete/modify) via BindingSource's Item, Add, and Remove methods. The
app works "properly" but BindingSource.List does not give me a TaskSchedule
object back. In fact, I can find nothing that looks like a TaskSchedule from
the BindingList.
If I change BindingList.Datasource to ScheduleItem, the application works
the same way.
Why is BindingSource not creating a TaskSchedule, or giving me a way to give
it a TaskSchedule object to use as a datasource? (I want to continue to set
the DataSource type at design time so that the DataGridView will generate the
columns for me)
Thx
Marc
bindingsource properties, I set DataSource to "TaskSchedule", a class derived
from List<ScheduleItem>. I perform all schedule operations
(add/delete/modify) via BindingSource's Item, Add, and Remove methods. The
app works "properly" but BindingSource.List does not give me a TaskSchedule
object back. In fact, I can find nothing that looks like a TaskSchedule from
the BindingList.
If I change BindingList.Datasource to ScheduleItem, the application works
the same way.
Why is BindingSource not creating a TaskSchedule, or giving me a way to give
it a TaskSchedule object to use as a datasource? (I want to continue to set
the DataSource type at design time so that the DataGridView will generate the
columns for me)
Thx
Marc