Ejemplo n.º 1
0
 private void TableView_InitNewRow(object sender, DevExpress.Xpf.Grid.InitNewRowEventArgs e)
 {
     grid.SetCellValue(e.RowHandle, "UnitPrice", 10);
     grid.SetCellValue(e.RowHandle, "Quantity", 10);
     grid.SetCellValue(e.RowHandle, "Country", "USA");
     grid.SetCellValue(e.RowHandle, "City", "NY");
 }
Ejemplo n.º 2
0
 void view_InitNewRow(object sender, DevExpress.Xpf.Grid.InitNewRowEventArgs e)
 {
     grid.SetCellValue(e.RowHandle, colQuantity, 1);
     grid.SetCellValue(e.RowHandle, colUnitPrice, 100);
     grid.SetCellValue(e.RowHandle, colDiscount, 0);
     grid.SetCellValue(e.RowHandle, colOrderID, newRowID++);
 }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void view_InitNewRow(object sender, DevExpress.Xpf.Grid.InitNewRowEventArgs e)
        {
            PropertiesViewModel vm = this.DataContext as PropertiesViewModel;

            vm.SelectedRelation.PhotoURI = @"C:\HVCC\Photos\HVCC.jpg";
            //Relationship row = this.relationshipGrid.GetRow(e.RowHandle) as Relationship;
        }
Ejemplo n.º 4
0
 private void tblView_InitNewRow(object sender, DevExpress.Xpf.Grid.InitNewRowEventArgs e)
 {
     try{
         grdPhieu.SetCellValue(e.RowHandle, colChanhxectid, MTGlobal.GetNewID());
         grdPhieu.SetCellValue(e.RowHandle, colChanhxeid, pPhieuID);
     }
     catch { }
 }
Ejemplo n.º 5
0
 private void tblView_InitNewRow(object sender, DevExpress.Xpf.Grid.InitNewRowEventArgs e)
 {
     try{
         grdPhieuNhap.SetCellValue(e.RowHandle, colPhieuNXCTID, MTGlobal.GetNewID());
         grdPhieuNhap.SetCellValue(e.RowHandle, colPhieuNXID, pPhieuNXID);
     }
     catch { }
 }