本文整理汇总了C#中DevExpress.GetRow方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.GetRow方法的具体用法?C# DevExpress.GetRow怎么用?C# DevExpress.GetRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DevExpress
的用法示例。
在下文中一共展示了DevExpress.GetRow方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: ModifyGridViewInstance
public void ModifyGridViewInstance(DevExpress.XtraGrid.Views.Grid.GridView masterGridView, int rowHandle, int relationIndex, IModelListView masterModelListView, List<MasterDetailRuleInfo> masterDetailRules) {
var modelDetailRelationCalculator = new ModelDetailRelationCalculator(masterModelListView, masterGridView, masterDetailRules);
bool isRelationSet = modelDetailRelationCalculator.IsRelationSet(rowHandle, relationIndex);
if (isRelationSet) {
IModelListView childModelListView = modelDetailRelationCalculator.GetChildModelListView(rowHandle, relationIndex);
Window window = _xafApplication.CreateWindow(TemplateContext.View, null, true, false);
ListView listView = GetListView(modelDetailRelationCalculator, rowHandle, relationIndex, childModelListView);
var detailXafGridView = (DevExpress.XtraGrid.Views.Grid.GridView)masterGridView.GetDetailView(rowHandle, relationIndex);
((IColumnViewEditor)listView.Editor).CustomGridViewCreate +=
(o, eventArgs) => {
((WinColumnsListEditor)o).DataSource = detailXafGridView.DataSource;
eventArgs.Handled = true;
eventArgs.GridView = detailXafGridView;
eventArgs.GridControl.DataSource = detailXafGridView.DataSource;
};
EventHandler[] listViewOnControlsCreated = { null };
listViewOnControlsCreated[0] = (sender, args) => {
((IMasterDetailColumnView)detailXafGridView).MasterFrame = ((IMasterDetailColumnView)masterGridView).MasterFrame ?? _masterFrame;
((IMasterDetailColumnView)detailXafGridView).Window = window;
detailXafGridView.GridControl = masterGridView.GridControl;
listView.ControlsCreated -= listViewOnControlsCreated[0];
};
listView.ControlsCreated += listViewOnControlsCreated[0];
((PropertyCollectionSource)listView.CollectionSource).MasterObject = masterGridView.GetRow(rowHandle);
window.SetView(listView);
}
}
示例3: GetFocusedRowObject
object GetFocusedRowObject(DevExpress.ExpressApp.Win.Editors.XafGridView view) {
if (view is XpandXafGridView && ((XpandXafGridView)view).Window == null)
return XtraGridUtils.GetFocusedRowObject(_collectionSourceBase, view);
int rowHandle = view.FocusedRowHandle;
if (!((!view.IsDataRow(rowHandle) && !view.IsNewItemRow(rowHandle))))
return view.GetRow(rowHandle);
return XtraGridUtils.GetFocusedRowObject(_collectionSourceBase, view);
}
示例4: getRow
private clsTipoCombustible getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsTipoCombustible)view.GetRow(view.FocusedRowHandle);
}
catch (Exception)
{
return null;
}
}
示例5: getRow
private clsIngresoEgresoCAB getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsIngresoEgresoCAB )view.GetRow(view.FocusedRowHandle);
}
catch (Exception)
{
return null;
}
}
示例6: getRow
private clsOrdenCompraDET getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsOrdenCompraDET)view.GetRow(view.FocusedRowHandle);
}
catch (Exception)
{
return null;
}
}
示例7: getRow
private clsActivoFijo getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsActivoFijo)view.GetRow(view.FocusedRowHandle);
}
catch (Exception)
{
return null;
}
}
示例8: getRow
private clsRevalorizacion getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsRevalorizacion)view.GetRow(view.FocusedRowHandle);
}
catch (Exception)
{
return null;
}
}
示例9: addChildRow
public static void addChildRow(DevExpress.XtraGrid.Views.Grid.GridView view, int indexRow)
{
int newRowHandle = view.FocusedRowHandle;
object newRow = view.GetRow(newRowHandle);
if (view.GroupedColumns.Count > 0)
{
for (int i = 0; i < view.GroupedColumns.Count; i++)
{
view.SetRowCellValue(newRowHandle, view.GroupedColumns[i], indexRow);
}
}
}
示例10: GetSelectedRow
//
private clsEmpresaServicio GetSelectedRow(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsEmpresaServicio )view.GetRow(view.FocusedRowHandle);
}
catch (Exception ex)
{
return null;
}
}
示例11: 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();
}
}
示例12: getRow
private clsUnidadMedida getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsUnidadMedida)view.GetRow(view.FocusedRowHandle);
}
catch (Exception)
{
return null;
}
}
示例13: GetSelectedRowCmbCuenta
private clsCuenta GetSelectedRowCmbCuenta(DevExpress.XtraGrid.Views.Grid.GridView view)
{
try
{
return (clsCuenta)view.GetRow(view.FocusedRowHandle);
}
catch (Exception ex)
{
Console.WriteLine("Error: "+ex);
return null;
}
}
示例14: returnRowUpdate
public static void returnRowUpdate(DevExpress.XtraGrid.Views.Grid.GridView view, object row)
{
for (int n = 0; n < view.DataRowCount; n++)
{
if (view.GetRow(n).Equals(row))
{
view.FocusedRowHandle = n;
break;
}
}
}