当前位置: 首页>>代码示例>>C#>>正文


C# GridView.GetFocusedRowCellValue方法代码示例

本文整理汇总了C#中GridView.GetFocusedRowCellValue方法的典型用法代码示例。如果您正苦于以下问题:C# GridView.GetFocusedRowCellValue方法的具体用法?C# GridView.GetFocusedRowCellValue怎么用?C# GridView.GetFocusedRowCellValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GridView的用法示例。


在下文中一共展示了GridView.GetFocusedRowCellValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Get_InfoRows

 /// <summary>
 /// Set info rows[]
 /// </summary>
 /// <param name="grv">Set info focus rowcell, default display three cell the first</param>
 public static string Get_InfoRows(GridView grv, string[] arr)
 {
     string str = "";
     if (arr != null && arr.Length > 0)
     {
         for (int i = 0; i < arr.Count(); i++)
         {
             str += "[" + grv.GetFocusedRowCellValue(arr[i]) + "]  ";
         }                
     }
     else
     {
         int count = 3;
         if (grv.Columns.Count < 3)
             count = grv.Columns.Count;
         for (int i = 0; i < count; i++)
         {
             str += "[" + grv.GetFocusedRowCellValue(grv.Columns[i]) + "]  ";
         }
     }
     return str;
 }
开发者ID:thanhphung901,项目名称:ketoan.app,代码行数:26,代码来源:Unit.cs

示例2: CheckFileLocks

        /// <summary>
        /// Performs file locking checks
        /// </summary>
        /// <param name="sender"></param>
        private void CheckFileLocks(GridView view)
        {
            if (view.FocusedRowHandle >= 0)
            {
                string workbench = view.GetFocusedRowCellValue(SummaryWorkbenchInfo.GetSummaryItemName(SummaryWorkbenchInfo.SummaryItemColumns.WorkBench)).ToString();
                if (workbench == Constants.kDaily && !_summaryWorkbenchInfo.IsDailyLocked)
                {
                    if (_summaryWorkbenchInfo.LockFiles(Constants.kDaily))
                    {
                        base.UpdateStatusMessage("Daily records are locked for editing.");
                        _summaryWorkbenchInfo.IsDirty = true;
                        _summaryWorkbenchInfo.ApplyChangesAllowed = true;
                        btnApply.Enabled = true;
                        btnModelRun.Enabled = true;
                    }
                    else
                    {
                        base.UpdateStatusMessage(_summaryWorkbenchInfo.ErrorMessage, true);

                        // Commented out because the user could still be modifying the other workbench type
                        // _summaryWorkbenchInfo.ApplyChangesAllowed = false;
                        // btnApply.Enabled = false;
                        // btnModelRun.Enabled = false;
                    }
                }
                if (workbench == Constants.kWeekly && !_summaryWorkbenchInfo.IsWeeklyLocked)
                {
                    if (_summaryWorkbenchInfo.LockFiles(Constants.kWeekly))
                    {
                        base.UpdateStatusMessage("Weekly records are locked for editing.");
                        _summaryWorkbenchInfo.IsDirty = true;
                        _summaryWorkbenchInfo.ApplyChangesAllowed = true;
                        btnApply.Enabled = true;
                        btnModelRun.Enabled = true;
                    }
                    else
                    {
                        base.UpdateStatusMessage(_summaryWorkbenchInfo.ErrorMessage, true);

                        // Commented out because the user could still be modifying the other workbench type
                        // _summaryWorkbenchInfo.ApplyChangesAllowed = false;
                        // btnApply.Enabled = false;
                        // btnModelRun.Enabled = false;
                    }
                }
                SetFileGroup();
            }
        }
开发者ID:jb3622,项目名称:Serrano,代码行数:52,代码来源:SummaryWorkbenchForm.cs


注:本文中的GridView.GetFocusedRowCellValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。