프로젝트

일반

사용자정보

개정판 b63621e8

IDb63621e832b479f0e0404b7c3c44dc26fae5ba82
상위 8507512b
하위 954de090

김태성이(가) 일년 이상 전에 추가함

issue #00000 row mouse drag로 multi select-> checked change event

Change-Id: I3b555c1421282b063ac9882c7e7f5e35152b1937

차이점 보기:

ID2.Manager/ID2.Manager/Main.cs
140 140
            this.radGridViewDocuments.FilterChanged += RadGridViewDocuments_FilterChanged;
141 141
            this.radGridViewDocuments.CellValidated += RadGridViewDocuments_CellValidated;
142 142
            this.radGridViewDocuments.ValueChanged += RadGridViewDocuments_ValueChanged;
143
            this.radGridViewDocuments.ValueChanging += RadGridViewDocuments_ValueChanging;
143 144
            this.radGridViewDocuments.MultiSelect = true;
144 145
            this.radGridViewDocuments.EnableHotTracking = true;
145 146
            this.radGridViewDocuments.MasterView.TableHeaderRow.MinHeight = 36;
......
171 172
            this.Initialize();
172 173
        }
173 174

  
175
        private void RadGridViewDocuments_ValueChanging(object sender, ValueChangingEventArgs e)
176
        {
177
            if(sender is GridViewCellInfo)
178
            {
179
                if (this.radGridViewDocuments.SelectedRows.Count() > 0)
180
                {
181
                    if ((sender as GridViewCellInfo).ColumnInfo is GridViewCheckBoxColumn)
182
                    {
183
                        if(!this.radGridViewDocuments.SelectedRows.Contains((sender as GridViewCellInfo).RowInfo))
184
                        {
185
                            e.Cancel = true;
186
                        }
187
                    }
188
                }
189
            }
190
        }
191

  
174 192
        /// <summary>
175 193
        /// 사용자가 선택한 테마를 적용한다.
176 194
        /// </summary>
......
1792 1810

  
1793 1811
        private void RadGridViewDocuments_CellValidated(object sender, CellValidatedEventArgs e)
1794 1812
        {
1795
            if(e.Column is GridViewCheckBoxColumn && radGridViewDocuments.SelectedRows?.Count() > 1)
1796
            {
1797
                radGridViewDocuments.SelectedRows.ForAll(x =>
1798
                {
1799
                    x.Cells[0].Value = e.Value;
1800
                });
1801
            }
1813
            //if(e.Column is GridViewCheckBoxColumn && radGridViewDocuments.SelectedRows?.Count() > 1)
1814
            //{
1815
            //    radGridViewDocuments.SelectedRows.ForAll(x =>
1816
            //    {
1817
            //        x.Cells[0].Value = e.Value;
1818
            //    });
1819
            //}
1802 1820

  
1803 1821
            //if (e.Column is GridViewComboBoxColumn)
1804 1822
            //{

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)