[2005] DataGridView Scrolling Optimization
Hi,
I have a DataGridView where I bind a datasource (sql query) to it. The row count is high with many columns. Trying to scroll through this DGV is painfully slow.
Does anyone know of any kinds of optimization I can do so that I can scroll faster? Like what is the DataGrid doing when you scroll? Does it repaint every screenful? Does it validate every row? It seems like it is doing something unneeded when a user scrolls.
Re: [2005] DataGridView Scrolling Optimization
While I've never used it, you might want to start by reading the documentation for the DataGridView.VirtualMode property.
Re: [2005] DataGridView Scrolling Optimization
sir what is the best alternative for datagridview? basing from the situation of ForumAccount?
Re: [2005] DataGridView Scrolling Optimization
Quote:
Originally Posted by j0shua
sir what is the best alternative for datagridview? basing from the situation of ForumAccount?
I have no idea what you're trying to ask and I'll wager that it's unrelated to this topic. I'd suggest that you try to explain what you want more clearly and, if it doesn;t relate specifically to this topic, post it in a new thread. Just because you are asking about a DataGridView doesn't make it relevant to this topic.
Re: [2005] DataGridView Scrolling Optimization
im sorry, i overlook what the thread starter posted, maybe i will just start a new thread. thank you!