체크박스 Edit 를 사용한 경우를 예로 들어
특정 컬럼에 체크 박스를 지정한 경우
체크박스의 체크상태를 변경하고 다른 셀로 포커스가 이동하기 전에는 실제 Grid 의 DataSource 에 변경사항이 반영되지 않음
체크상태가 바뀌는 즉시 반영되게 할려면.....
체크박스의 경우
RepositoryItemCheckEdit.CheckedChanged
이벤트에서 Grid 로 바로 반영시켜 주면됨
예) gvSW.SetFocusedRowCellValue("Sel", ((DevExpress.XtraEditors.CheckEdit)sender).Checked ? 1 : 0);
그러면 Grid 의 CellValueChange 이벤트가 바로 발생함
'IT > Component' 카테고리의 다른 글
[Devexpress] RepositoryItemRichTextEdit AutoHeight by Enter Key (0) | 2015.07.07 |
---|---|
[DevExpress] Row Indicator Custom Draw (0) | 2015.06.10 |
[Devexpress] Xtra RicEditControl HTML 한글폰트 문제 (0) | 2013.10.31 |
[Devexpress] XtraTabControl TabHeader Customizing (0) | 2013.07.12 |
[Devexpress] XtraGrid 의 구성 참조 (0) | 2012.11.19 |