Luis Esteban Valencia Muñoz

Hello, I am an expert on asp.net but new to winforms. I want to create a class library with functions for deleting, inserting, updating and viewing data on a table.

and I want to bind the datagridview to that class library, it appers on the datagridview datasource property, but the datagridview doesnt fill! I need help please.

Any one knows a tutotial of winforms and object datasources

thanks




Re: Windows Forms General Bind datagridview to object datasource as ASP.nET?

Hayder Marzouk

Hi,

You can bind any object that implements IList interface to the DatagridView. So if you object does not implement any colelction interface (ICollection, IList, ITypedList, ....) or derives directly from a collection object (BindingListView, List, ArrayList,...) no data will be displayed.

Many other features (Sorting, Searching, tacking changes,...) can be implemented to your object through IBindingListView Interface.

You can post you object code to find what's going wrong.

HTH.





Re: Windows Forms General Bind datagridview to object datasource as ASP.nET?

Shah Sahil

Watch the Lesson 8 and Lesson 9 Videos on this link from Learning Resources by Microsoft.
http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx