Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27046

VS 2013 [RESOLVED] Loop through all columns in binding source...

$
0
0
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

Viewing all articles
Browse latest Browse all 27046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>