Posts Tagged: Databinding

Sortable Binding List for custom data objects

Posted by & filed under .Net, .Net 3.0 / 3.5, Windows Forms.

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 [...]

Implementing Custom Paging in DataRepeater using C# and SQL Server

Posted by & filed under .Net, .Net 3.0 / 3.5, ASP.Net, SQL Server, Visual Studio.

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 [...]