Binding generic collections to Windows forms Data gridview can be done using DataSource property of Gridview control. But the problem with normal generic lists that it doesn’t support sorting, by clicking the grid view headers. .Net Framework provides an generic abstract class, BindingList<T>, which supports virtual methods for Searching and Sorting And here is an [...]
Posts Tagged: Databinding
Implementing Custom Paging in DataRepeater using C# and SQL Server
Normally DataRepeater doesn’t have a paging feature; and you can implement it using LINQ, if you are using .Net 3.5. Here is an implementation which is using SQL Server 2005 feature ROW_NUMBER(). You can get more information about ROW_NUMBER() from MSDN. Stored Procedure – xsp_GetPersons And I added a DataRepeater control, with Next and Previous [...]