I have a data source that I want to bind to a list that has multiple columns. How to link your data source to this list
Here is some kind of pseudo code that doesn't work to help illustrate what I'm trying to do:
MyDataTable dt = GetDataSource();
ListView1.DataBindings.Add("Column1.Text", dt, "MyDBCol1");
ListView1.DataBindings.Add("Column2.Text", dt, "MyDBCol2");
- change -
Sorry, I forgot to mention that these were winforms.
source
share