How to bind data to a shared list in ASP.NET 3.5?

I want to bind my ListView to a shared list of objects?

I thought I could write the code:

listView1.DataSource = fCol.ToList; listView1.DataBind ();

I get that it is not possible to convert to object error.

I'm pretty sure you are using the BindingSource object in Windows programming. Is there an equivalent to web forms?

0


source to share


1 answer


You are missing the parentheses from the end of the ToList () call.



+4


source







All Articles