SVN-Revision: r911
This commit is contained in:
tdx
2025-08-07 02:00:56 +00:00
parent d5972f833e
commit b220e6d3e2
2 changed files with 43 additions and 9 deletions
+11 -5
View File
@@ -39,7 +39,7 @@ namespace Lskj.Control
/// </summary>
public partial class ModuleGridDetailEx : UserControl
{
/// <summary>
/// 系统模块实体对象
/// </summary>
@@ -385,7 +385,7 @@ namespace Lskj.Control
{
if (this.ModuleGridObj.GridControlObj.CustomGroupBandEx != null)
{
this.ModuleGridObj.GridControlObj.CustomGroupBandEx.GridView.MouseUp += new MouseEventHandler(GridView_MouseDown);
this.ModuleGridObj.GridControlObj.CustomGroupBandEx.GridView.MouseDown += new MouseEventHandler(GridView_MouseDown);
this.ModuleGridObj.GridControlObj.CustomGroupBandEx.GridView.FocusedRowObjectChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventHandler(OnGridViewFocusedRowObjectChanged);
}
this.ModuleGridObj.GridControlObj.GridView.FocusedRowObjectChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventHandler(OnGridViewFocusedRowObjectChanged);
@@ -902,7 +902,7 @@ namespace Lskj.Control
{
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
}
//sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
DataRow row = this.ModuleGridObj.GridControlObj.GetViewFocusedDataRow();
if (row != null && isLeft)
@@ -920,10 +920,16 @@ namespace Lskj.Control
if (bandEx != null)
{
var bandedView = bandEx.GridView as DevExpress.XtraGrid.Views.BandedGrid.BandedGridView;
if (bandedView != null && bandedView.FocusedColumn != null)
GridColumn focusedColumn = null;
DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hitInfo = bandedView.CalcHitInfo(MousePosition.X, MousePosition.Y);
if (hitInfo.InRowCell)
{
focusedColumn = hitInfo.Column;
}
if (bandedView != null && focusedColumn != null)
{
// 强转;成功才说明列属于 BandedGridView
var bcol = bandedView.FocusedColumn as DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn;
var bcol = focusedColumn as DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn;
if (bcol != null && bcol.OwnerBand != null)
{
// 若只想最顶层 Band,循环 ParentBand 至 null