반응형
하고싶었던것. 라벨에 List.Count 값을 바인딩하는 것
그런데 List.Count를 바로 바인딩할수는 없고?
List 클래스 자체에는 ListChanged 이벤트가 없다.
BindingSource를 만들고 BindingSource의 DataSource에 List를 넣고
BindingSource의 ListChanged 이벤트를 사용
https://stackoverflow.com/questions/16660875/how-to-bind-a-list-count-to-a-label
반응형
'백엔드 > C#' 카테고리의 다른 글
특정 속성만 빼서 리스트로 만들기 (0) | 2018.08.16 |
---|---|
c# To convert from decimal to hex (0) | 2018.07.31 |
뷰 사전 만들기 Dictionary<뷰이름, Type> (0) | 2018.07.18 |
파일 하나를 두개 창에서 보기 (0) | 2018.06.26 |
CheckedChanged vs CheckStateChanged (0) | 2018.06.26 |
댓글