using is Officially Moved

27 October 2008

This site is no longer maintained.  I am leaving it up for the time being because it still generated a lot of traffic. 

Please visit my new site at http://www.FWHagen.com/weblog/

Advertisements

Subversion for Visual Studio Users

14 October 2008

VisualStudioLogo subversion_logo-200x173 There are a few articles online covering SVN and VS, but many are out of date and a bit more complicated than necessary with advances in both products.  For a current install (Oct 2008:  SVN 1.5.2 / VS2005), you only need 3 files:


Suppressing Paging Numbers on Short DataGrids

21 August 2008

I hate seeing a solitary “1” on the bottom of a paged datagrid because the dataset is too short to have more than one page.  You don’t really want to turn off paging but suppress the “1” when it is not needed.

Use this code to do just that when binding the grid:

        if (dgEmployee.Items.Count < dgEmployee.PageSize)
            dgEmployee.PagerStyle.Visible = false;