Category Archives: .Net 3.0 / 3.5

How to persist checkbox state in gridview while paging

Again an asp.net post. Today I saw the same question few times in forum, so I thought about creating a post around it. And it helped me to brush up my asp.net skills once again. In this I am using … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net | Tagged , , , , | 4 Comments

How redirect output from a console application

GUI tools are offers better User experience than command line tools. But in few scenarios we don’t require GUI, like MS Build tasks, and in some cases the application may not have a UI, example: ImageMagik tools. If check codeplex.com, … Continue reading

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0, Windows Forms | Tagged , , , , | 1 Comment

Sortable Binding List for custom data objects

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 … Continue reading

Posted in .Net, .Net 3.0 / 3.5, Windows Forms | Tagged , , , , , , | Leave a comment

ArgumentException – This row already belongs to another table

Today one of my colleague got this problem while copying datarow from one table to another, he just want to update few values of a same schema dataTable. So he used following method. He was getting an exception like “This … Continue reading

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0, ASP.Net, Windows Forms | Tagged , , , , , | Leave a comment

Getting Code coverage using Open Cover and NUnit

In the last post I blogged about how to get code coverage using MSTest and Part cover. In this post I am blogging about measuring code coverage with Open cover. Today I found another alternative to measure code coverage. Its … Continue reading

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0, Code coverage, Unit Testing | Tagged , , , , , , , | 2 Comments