Thursday, October 30, 2008

A nice tutorial on Design Patterns

Design Patterns in simple examples.

Speed up DataGridView C#

The DataGridView in C# 2005 is very slow for about 15000 records.
Fixes:
  • AutoSizeColumnsMode = Fill;
  • BorderStyle = None;
  • CellBorderStyle = SingleVertical;
  • ColumnHeaderBorderStyle = Single;
  • ColumnHeaderHeightSizeMode = DisableResizing;
  • EditMode = EditProgrammatically;
  • EnableHeadersVisualStyles = False;
  • ReadOnly = True;
  • RowHeadersWidthSizeMode = DisableResizing;
  • ShowCellTooTips = False;

These settings were tested in Visual Studio 2005, in which works very well. I haven't tested them in VS 2008, but I thing they work as well.