本文整理汇总了C#中CellValueChangedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# CellValueChangedEventArgs类的具体用法?C# CellValueChangedEventArgs怎么用?C# CellValueChangedEventArgs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CellValueChangedEventArgs类属于命名空间,在下文中一共展示了CellValueChangedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: gridView1_CellValueChanged
private void gridView1_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
gridView1.PostEditor();
gridView1.UpdateCurrentRow();
var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
if (dr != null)
{
if (e.Column.Name == "SEL")
{
if (dr["SEL"].ToString() == bool.TrueString)
{
gridView1.SetRowCellValue(gridView1.FocusedRowHandle, "AppliedAmt", decimal.Parse(dr["BALANCE"].ToString()));
}
else
{
gridView1.SetRowCellValue(gridView1.FocusedRowHandle, "AppliedAmt", 0);
}
}
//if (e.Column == colAppliedAmt)
//{
// gridView1.SetRowCellValue(gridView1.FocusedRowHandle, colAppliedAmt, decimal.Parse(dr["BALANCE"].ToString()) - decimal.Parse(dr["AppliedAmt"].ToString()));
//}
if (string.IsNullOrEmpty(dr["AppliedAmt"].ToString()))
{
gridView1.SetRowCellValue(gridView1.FocusedRowHandle, "SEL", bool.FalseString);
}
}
}
示例2: OnCellValueChanged
private void OnCellValueChanged(CellValueChangedEventArgs e)
{
if (lockEvents)
return;
lockEvents = true;
SetSelectedCellsValues(e.Value);
lockEvents = false;
}
示例3: gvTasks_CellValueChanged
private void gvTasks_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
var curDoc = gvSuperTasks.GetRow(gvSuperTasks.FocusedRowHandle) as SuperTaskToDistrict;
if (curDoc != null)
{
_controller.Save(curDoc);
}
}
示例4: gridView1_CellValueChanged
void gridView1_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
PS_xl obj = gridView1.GetRow(e.RowHandle) as PS_xl;
if (obj!=null)
{
Client.ClientHelper.PlatformSqlMap.Update<PS_xl>(obj);
}
}
示例5: gvTasks_CellValueChanged
private void gvTasks_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
var curDoc = gvPackingLists.GetRow(gvPackingLists.FocusedRowHandle) as PackingList;
if (curDoc != null)
{
_controller.Save(curDoc);
}
}
示例6: gvTechRoutes_CellValueChanged
private void gvTechRoutes_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
var doc = (ProfileWorkHour) gvTechRoutes.GetFocusedRow();
if (doc != null)
{
_controller.Save(doc);
}
}
示例7: gridView1_CellValueChanged
private void gridView1_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
if (e.Column.Name == "colMateria")
{
sMateria = e.Value.ToString(); ;
AddComboBoxColumn("Select Clave From Materias Where Nombre='" + e.Value.ToString() + "'", "Clave", "Clave");
}
if (e.Column.Name == "colClave")
{
sClave = e.Value.ToString(); ;
}
AddComboBoxColumn("Select SG From Grupos Where SG NOT IN(SELECT Grupo FROM MaestroMateria Where Materia='" + sMateria + "' AND Clave='" + sClave +"')", "Grupo", "SG");
}
示例8: View_CellValueChanging
void View_CellValueChanging( object sender , CellValueChangedEventArgs e )
{
if ( Convert.ToDecimal( e.Value ) == 1 )
return;
if ( Convert.ToDecimal( e.Value ) < 1 )
{
this.gridView1.SetRowCellValue( -2147483647 , this.gridView1.Columns[ 1 ].FieldName , 1 );
return;
}
decimal subTotal = Convert.ToDecimal( e.Value ) * costoUnitario;
this.gridView1.SetRowCellValue( -2147483647 , this.gridView1.Columns[ 4 ].FieldName , subTotal );
}
示例9: AllUsersCellValueChanging
private void AllUsersCellValueChanging(object sender, CellValueChangedEventArgs e)
{
if (e.Column != colIsLocked)
{
return;
}
if ((bool)e.Value)
{
LockUser();
}
else
{
UnlockUser();
}
}
示例10: ValuesGridViewCellValueChanged
private void ValuesGridViewCellValueChanged(object sender, CellValueChangedEventArgs e)
{
var dataRow = valuesGridView.GetRow(e.RowHandle) as GetIndicatorValuesForAllOrganization_Result;
if (dataRow == null) return;
bool isPlan = false;
int cMonth;
if (e.Column.FieldName.Substring(0, 2) == "vp")
{
isPlan = true;
cMonth = int.Parse(e.Column.FieldName.Substring(2));
}
else cMonth = int.Parse(e.Column.FieldName.Substring(1));
_dataProcessing.CnahgeIndicatorValue(dataRow.id_organization, _curIdIndicator, _curYear, cMonth, isPlan,
e.Value is double ? (double) e.Value : 0);
}
示例11: gridViewCRNNamingRule_CellValueChanged
private void gridViewCRNNamingRule_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
labelLineRuleSetup.Text = "";
for (int i = 0; i < gridViewCRNNamingRule.RowCount; i++)
{
DataRow row = gridViewCRNNamingRule.GetDataRow(i);
//labelLineRuleSetup.Text = labelLineRuleSetup.Text + row.ItemArray[0].ToString() + row.ItemArray[1].ToString();
//+ row.ItemArray[2].ToString() + row.ItemArray[3].ToString() + row.ItemArray[4].ToString();
if (i == gridViewCRNNamingRule.RowCount - 1)
{
labelLineRuleSetup.Text = labelLineRuleSetup.Text + row.ItemArray[0].ToString();
gridViewCRNNamingRule.GetDataRow(gridViewCRNNamingRule.RowCount - 1)["Separator"] = "";
}
else
{
labelLineRuleSetup.Text = labelLineRuleSetup.Text + row.ItemArray[0].ToString() + row.ItemArray[1].ToString();
}
}
gridViewCRNNamingRule.BestFitColumns();
}
示例12: dgb_liquidacion_CellValueChanged
private void dgb_liquidacion_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
if (e.Column.FieldName == "importe1")
{
_AcmImportesMN(e.Column.FieldName);
_CalcularTotales(e.Column.FieldName);
}
if (e.Column.FieldName == "importe2")
{
_AcmImportesMN(e.Column.FieldName);
_CalcularTotales(e.Column.FieldName);
}
}
示例13: treeList1_CellValueChanged
private void treeList1_CellValueChanged(object sender, CellValueChangedEventArgs e) {
if (e.Column.FieldName == "层") {//修改图层名称
}
}
示例14: treeList2_CellValueChanging
private void treeList2_CellValueChanging(object sender, CellValueChangedEventArgs e)
{
}
示例15: _View_CellValueChanged
private void _View_CellValueChanged(object sender, CellValueChangedEventArgs e)
{
OnCellValueChanged(e);
}