Computers/Language 2014. 1. 21. 10:34


C#에서 

데이터 그리드

사용할때 속도문제





https://www.google.co.kr/?gws_rd=cr&ei=QtW7Uqf1FsGQlQWv8oCQCw#newwindow=1&q=c%23+%EB%8D%B0%EC%9D%B4%ED%84%B0+%EA%B7%B8%EB%A6%AC%EB%93%9C+%EB%B7%B0+%EC%86%8D%EB%8F%84


국내 블로그

http://sysoft.tistory.com/68

http://blog.naver.com/PostView.nhn?blogId=cby777&logNo=30138176907


DataGridView 느린 속도를 개선하는 방법
DataGridView를 상속 받은 CustomDataGridView를 이용해서 사용
class
 CustomDataGridView: DataGridView
{
    
public CustomDataGridView()
    
{
        
DoubleBuffered = true;
    
} 
}
사용법은
CustomDataGridView  testGrid; 
처럼 정의후
testGrid = new CustomDataGridView  ();
인스텐스를 만드시면 됩니다.물론 컨트롤 add 하는 것도 잊지마세요.

 this.Controls.Add(testGrid ); 



C# Winform DataGridView 성능 개선 - AutoSizeColumnsMode

데이터 삽입 전 AutoSizeColumnsMode를 DataGridViewAutoSizeColumnsMode.None 으로 설정 하시고데이터를 모두 삽입한 후 AutoSizeColumnsMode를 원하시는 것으로 변경


DataGridView setting DataSource is too slow


http://www.codeproject.com/Questions/175013/DataGridView-setting-DataSource-is-too-slow


I'VE FOUND THE SOLUTION!!!!
 
The main reason that databinding a datatable to a grid is so slow is because the drawing of the columnnames takes alot time. The simple line of code:

gridHeader.ColumnHeadersVisible = false;

Speeds up the databinding process from 180-300 ms to 4 ms!!!

posted by 털보네i
: