R
Ronald S. Cook
I'm used to my class returning records -- let's say employee records -- in a
DataSet (ok, so DataTable within a DataSet technically).
But now, my class is returning those records as IEnumerable(Of Employee).
While I can still just as easily bind this to a ComboBox, ListBox,
DataGridView, etc., I'm not understanding how to add records to it.
If I try to add a record to, say, the ListBox, it will tell me it can't
because the control is bound.
So, how can I add records to ultimately the IEnumerable(Of Employee) object?
Thanks,
Ron
DataSet (ok, so DataTable within a DataSet technically).
But now, my class is returning those records as IEnumerable(Of Employee).
While I can still just as easily bind this to a ComboBox, ListBox,
DataGridView, etc., I'm not understanding how to add records to it.
If I try to add a record to, say, the ListBox, it will tell me it can't
because the control is bound.
So, how can I add records to ultimately the IEnumerable(Of Employee) object?
Thanks,
Ron