Αρχικά για να δώσει κάποιος μια απάνηση πρέπει να δει πως έχει υλοποιηθεί η εφαρμογή.
επίσης έχει σημασία πόσες εγγραφές φέρνεις στο datagridview.... αν φέρνεις 10.000 rows τοτε....
1)βασικά πρέπει να φέρνεις πολλά δεδομένα και καταναλώνεται πολύ μνήμη και να έχει άμεσο αντίκτυπο στο πως αντιδράει το UI.
2) με λίγο Googling είδα ότι όμως και άλλοι παραπονιούνται για το Datagridview rendering
δες λίγο εδώ
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=117093
για να μην χαθείς σε όλα αυτά που θα διαβάσεις δες αυτά
The DataGrid control indeed paints faster than the DataGridView control. I invalidate and repaint them entirely 100 times, while 11 x 51 cells are displayed. It turns out that this operation takes 7.5 seconds for the DataGrid and 24 seconds for the DataGridView on my machine.
I tried to bring this time down by trying a few things:
- turn off Visual Styles (EnableVisualStyles=false) -> 23 seconds.
- turn off cell borders (this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None) -> 18 seconds
δες και αυτό
http://msdn.microsoft.com/en-us/library/ha5xt0d9.aspx
βασικά αν μπορείς χρησιμοποίησε ένα datagrid control χρησιμοποίησε αυτό.
Νικόλαος Καντζέλης
BSc, MSc, MCAS, MCPD, MCITP, MCTS,MCP, MCT