Пример #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");
 }
Пример #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++);
 }
Пример #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;
        }
Пример #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 { }
 }
 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 { }
 }