반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Compare
- MSSQL
- WinForm
- Git
- json
- ejs
- jQuery
- body
- input
- SSMS
- github
- html 코드
- C#
- 비교
- 한번에 체크
- CheckAllChildNodes
- 로깅
- 윈폼
- checkbox
- 깜빡임
- nodejs
- 초기설정
- treeview
- 깃허브
- SQL Server
- ChatGPT
- 하위노드
- header
- footer
- sql 서버
Archives
- Today
- Total
반응형
목록한번에 체크 (1)
반응형
타닥타닥 민타쿠
C# 윈폼(Winform) 자식(하위) 노드까지 한번에 체크하기
트리뷰의 자식 노드까지 전체 체크, 전체 체크해제 기능은 AfterCheck 이벤트를 통해 간단히 만들 수 있는데, 친절하게도 공식 문서의 TreeView.AfterCheck Event 페이지에 자식 노드의 체크 기능까지 같이 나와있다. 코드는 아래와 같다. // Updates all child tree nodes recursively. private void CheckAllChildNodes(TreeNode treeNode, bool nodeChecked) { foreach(TreeNode node in treeNode.Nodes) { node.Checked = nodeChecked; if(node.Nodes.Count > 0) { // If the current node has child nodes,..
개발/Winform
2022. 7. 23. 10:01
반응형