728x90
행이 몇만건 되는 데이터를 GridControl DataSource에 바로 대입해서 세팅하려고 하니 몇초나 걸려서 이를 개선하는 작업을 했다. 몇 줄 안 되는 코드로 바꾸기만 했는데 시간이 빠르게 단축됐다. 아래는 해당 코드이다~.~
treeList.DataSource = new List<Code>();
if (!(treeList.DataSource is List<Code> dataSource)) return;
dataSource.AddRange(넣으려는 리스트);
treeList.RefreshDataSource();
앗 보니까 treeList네 ㅎ 어쨌든 같지 않을까 ㅎ
728x90
'C# > DevExpress' 카테고리의 다른 글
[DevExpress] Hot-Tracking 코드로 직접 구현하기 (0) | 2023.01.19 |
---|---|
[DevExpress] GridControl 헤더에 체크박스 넣기 (0) | 2022.12.17 |
[DevExpress] FormatConditionRuleIconSet 사용하여 값의 범위에 따라 특정 아이콘 보여주도록 설정 하기 (0) | 2022.12.16 |