I am making a control and want to be able to get the data directly from a binding source... that is set via a property of the control.
I need it to be able to get a list of column names, and also the data from the current bindingsource by specifying a column name...
I have searched the internet for this but all of the posts that i could find seemed to rely on the underlying datasource being a data table and doing things like:
directcast(me.BindingSource.Item(0),Data.DataRowView)
... this is no good to me as I want it to work for whatever binding is behind it (since this is a control that a lot of people may use) ... I know this must be possible as Microsoft's datagridview control replicates the behavior that I need...
Any ideas?
Thanks,
Kris
I need it to be able to get a list of column names, and also the data from the current bindingsource by specifying a column name...
I have searched the internet for this but all of the posts that i could find seemed to rely on the underlying datasource being a data table and doing things like:
directcast(me.BindingSource.Item(0),Data.DataRowView)
... this is no good to me as I want it to work for whatever binding is behind it (since this is a control that a lot of people may use) ... I know this must be possible as Microsoft's datagridview control replicates the behavior that I need...
Any ideas?
Thanks,
Kris