private IList<int> GetSelectDataSourceRowIndexWithoutGroup() {
IList<int> _list = new List<int>();
try {
int[] _arrHandles = gridView2.GetSelectedRows();
foreach(int _handle in _arrHandles) {
if(!gridView2.IsGroupRow(_handle)) {
_list.Add(gridView2.GetDataSourceRowIndex(_handle));
}
}
} catch(Exception ex) {
MyLogger.SendLog(EnNlogLevel.ERROR, ex.ToString(), "GetSelectRowhandleCountWithoutGroup");
return new List<int>();
}
return _list;
}
IList<int> _list = new List<int>();
try {
int[] _arrHandles = gridView2.GetSelectedRows();
foreach(int _handle in _arrHandles) {
if(!gridView2.IsGroupRow(_handle)) {
_list.Add(gridView2.GetDataSourceRowIndex(_handle));
}
}
} catch(Exception ex) {
MyLogger.SendLog(EnNlogLevel.ERROR, ex.ToString(), "GetSelectRowhandleCountWithoutGroup");
return new List<int>();
}
return _list;
}
GridView 의 isGroupRow 함수 사용이 관건
'IT > Component' 카테고리의 다른 글
[Devexpresss] Grid Footer 영역 customizing 샘플 (0) | 2012.09.12 |
---|---|
[Farpoint Spread] Excel 저장시 버그? (0) | 2010.12.08 |
[DevExpress] DisableThreadingProblemsDetection 문제 (0) | 2009.01.23 |
[Devexpress] Xtragrid 에서 선택된 행 유지 (0) | 2009.01.06 |
[DevExpress] Grid 의 특정 Row Handle 과 Grid DataSource 의 Index (0) | 2008.09.02 |