반응형
그리드에 있는 checkbox 한개만 선택되게 할 때
1 2 3 4 5 6 7 8 9 10 11 12 | private void advBandedGridViewMtrl_CellValueChanging( object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) { if (e.Column.FieldName == "BASE_CUST_YN" ) { if (e.Value.ToString() == "Y" ) { for ( int i = 0; i < this .advBandedGridViewMtrl.RowCount; i++) if (i != e.RowHandle) ( this .advBandedGridViewMtrl.GetDataRow(i) as DataRow)[ "BASE_CUST_YN" ] = "N" ; } } } |
반응형
'Winform' 카테고리의 다른 글
기본 combobox (1) | 2020.09.04 |
---|---|
Devexpress Grid CustomSummaryCalculate(그리드 특정 조건만 sum) (0) | 2019.05.21 |
[DevExpress] TextEdit에 Invalid Value 아이콘 제거 하기. (4) | 2019.01.22 |
Devexpress Grid LostFocus Event (2) | 2018.12.19 |
DevExpress PictureEdit Drag&Drop (4) | 2018.03.13 |
댓글