本文整理汇总了C#中DevExpress.RefreshData方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.RefreshData方法的具体用法?C# DevExpress.RefreshData怎么用?C# DevExpress.RefreshData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DevExpress
的用法示例。
在下文中一共展示了DevExpress.RefreshData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoverRenglonDelGrid
private void RemoverRenglonDelGrid(DevExpress.XtraGrid.GridControl Grid, DevExpress.XtraGrid.Views.Grid.GridView GV)
{
var lstDoctosPV = (List<DoctosPV>)(Grid.DataSource);
if (lstDoctosPV.Count > 0)
{
int i = GV.GetSelectedRows()[0];
DoctosPV retiro = (DoctosPV)GV.GetRow(i);
lstDoctosPV.Remove(retiro);
Grid.DataSource = lstDoctosPV;
GV.RefreshData();
}
}
示例2: AgregarRenglonAlGrid
private void AgregarRenglonAlGrid(DevExpress.XtraGrid.GridControl Grid, DevExpress.XtraGrid.Views.Grid.GridView GV)
{
var lstDoctosPV = (List<DoctosPV>)(Grid.DataSource);
if (lstDoctosPV.Count >= 0)
{
DoctosPV doctos = new DoctosPV();
doctos.CajaID = 0;
doctos.NombreCaja = "Concepto " + (lstDoctosPV.Count + 1);
doctos.Neto = 0;
doctos.Impuesto = 0;
lstDoctosPV.Add(doctos);
Grid.DataSource = lstDoctosPV;
GV.RefreshData();
}
}
示例3: AgregarRenglonAlGrid
private void AgregarRenglonAlGrid(DevExpress.XtraGrid.GridControl Grid, DevExpress.XtraGrid.Views.Grid.GridView GV)
{
var lstRegistros = (List<ChequeTransferencia>)Grid.DataSource;
if (lstRegistros.Count >= 0)
{
ChequeTransferencia registro = new ChequeTransferencia();
registro.Identificador = string.Empty;
registro.Cliente = string.Empty;
registro.Banco = string.Empty;
registro.Importe = 0;
lstRegistros.Add(registro);
Grid.DataSource = lstRegistros;
GV.RefreshData();
GV.BestFitColumns();
}
}
示例4: RemoverRenglonDelGrid
private void RemoverRenglonDelGrid(DevExpress.XtraGrid.GridControl Grid, DevExpress.XtraGrid.Views.Grid.GridView GV)
{
var lstRegistros = (List<ChequeTransferencia>)(Grid.DataSource);
if (lstRegistros.Count > 0)
{
int i = GV.GetSelectedRows()[0];
ChequeTransferencia registro = (ChequeTransferencia)GV.GetRow(i);
lstRegistros.Remove(registro);
Grid.DataSource = lstRegistros;
GV.RefreshData();
}
}