本文整理汇总了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;
}
示例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();
}
}