Thursday, October 30, 2008
Speed up DataGridView C#
The DataGridView in C# 2005 is very slow for about 15000 records.
Fixes:
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.
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.
Labels:
C#,
DataGridView,
Fixes,
Microsoft,
Programming,
SpeedUp,
Visual Studio
Subscribe to:
Posts (Atom)