Showing posts with label Fixes. Show all posts
Showing posts with label Fixes. Show all posts

Thursday, October 30, 2008

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.

Thursday, October 18, 2007

Speed up DataGridView C#

The DataGridView in C# 2005 is very slow for about 15000 records.
Possibly fixes:
  • none at this time