private void OnRequestAdvancedMessageData(object sender, GridColumnDataEventArgs e)
        {
            var msg = Model.Messages[e.ListSourceRowIndex];
            var storedMsg = msg as StoredMessage;

            if (e.IsGetData)
            {
                if (e.Column.FieldName == AdvancedEndpointColumns.MessageId)
                {
                    e.Value = storedMsg != null ? storedMsg.MessageId : msg.Id;
                }

                if (e.Column.FieldName == AdvancedEndpointColumns.CriticalTime)
                {
                    e.Value = Model.GetCriticalTime(storedMsg);
                }

                if (e.Column.FieldName == AdvancedEndpointColumns.ProcessingTime)
                {
                    e.Value = Model.GetProcessingTime(storedMsg);
                }

                if (e.Column.FieldName == AdvancedEndpointColumns.IsFaulted)
                {
                    e.Value = storedMsg != null ? Model.GetMessageErrorInfo(storedMsg) : Model.GetMessageErrorInfo();
                }
            }
        }
        void OnRequestAdvancedMessageData(object sender, GridColumnDataEventArgs e)
        {
            var msg = Model.Rows[e.ListSourceRowIndex];

            if (e.IsGetData && e.Column.FieldName == UnboundColumns.IsFaulted)
            {
                e.Value = Model.GetMessageErrorInfo(msg);
            }
        }
 private void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.IsGetData)
     {
         int price        = Convert.ToInt32(e.GetListSourceFieldValue("UnitPrice"));
         int unitsOnOrder = Convert.ToInt32(e.GetListSourceFieldValue("UnitsOnOrder"));
         e.Value = price * unitsOnOrder;
     }
 }
Пример #4
0
        public override void WriteValue(GridControl gridControl, GridColumnDataEventArgs e)
        {
            CommandEventArgs args = new CommandEventArgs(gridControl.GetRowByListIndex(e.ListSourceRowIndex), e.Value);

            if (ValueWriting != null)
            {
                ValueWriting(this, args);
            }
        }
Пример #5
0
        void OnRequestAdvancedMessageData(object sender, GridColumnDataEventArgs e)
        {
            var msg = Model.Rows[e.ListSourceRowIndex];

            if (e.IsGetData && e.Column.FieldName == UnboundColumns.IsFaulted)
            {
                e.Value = Model.GetMessageErrorInfo(msg);
            }
        }
Пример #6
0
        public override void ReadValue(GridControl gridControl, GridColumnDataEventArgs e)
        {
            CommandEventArgs args = new CommandEventArgs(gridControl.GetRowByListIndex(e.ListSourceRowIndex), null);

            if (ValueReading != null)
            {
                ValueReading(this, args);
            }
            e.Value = args.Value;
        }
Пример #7
0
 private void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.Column.FieldName == "Chart")
     {
         double key = (int)e.GetListSourceFieldValue("Number");
         if (e.IsGetData)
         {
             e.Value = (double)key;
         }
     }
 }
Пример #8
0
 private void GridControl_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.Column.FieldName == "IconUnbound")
     {
         if (e.IsGetData)
         {
             MyObject row          = dataSource[e.ListSourceRowIndex];
             string   resourceName = GetResourceName(row.Action);
             e.Value = GetImage(resourceName);
         }
     }
 }
Пример #9
0
        private void ProductsGridControlOnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            var product = ((IList)((FmEditModeGridControl)sender).ItemsSource)[e.ListSourceRowIndex] as Product;

            if (e.IsGetData)
            {
                if (e.Column.FieldName == "Price")
                {
                    e.Value = GetLastProductPriceByProductId(product.Id);
                }
            }
        }
Пример #10
0
        void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            int sum = 0;

            foreach (GridColumn column in grid.Columns)
            {
                if (column.FieldName != "Employee" && column.FieldName != "Total")
                {
                    sum += (int)e.GetListSourceFieldValue(column.FieldName);
                }
            }
            e.Value = sum;
        }
Пример #11
0
 void gridOnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.Column.FieldName == "Number3")
     {
         if (e.IsGetData)
         {
             e.Value = (int)e.RowData.GetFieldValue("Id") * 3;
         }
         else if (e.IsSetData)
         {
             e.EditableRowData.SetFieldValue("Id", -371);
         }
     }
 }
Пример #12
0
 private void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.Column.FieldName == "Selected")
     {
         if (e.IsGetData)
         {
             e.Value = unboundItemsSource[e.ListSourceRowIndex];
         }
         if (e.IsSetData)
         {
             unboundItemsSource[e.ListSourceRowIndex] = (bool)e.Value;
         }
     }
 }
Пример #13
0
        private void OnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            Appointment currentApt = (gridControlAppointments.GetRowByListIndex(e.ListSourceRowIndex) as AgendaAppointment).SourceAppointment;

            if (e.Column.FieldName == "gridColumnRecurring" && e.IsGetData && currentApt.IsRecurring)
            {
                e.Value = ImageToBitmapImage.Convert(appointmentImages.Images[2]);
            }

            if (e.Column.FieldName == "gridColumnReminder" && e.IsGetData && currentApt.HasReminder)
            {
                e.Value = ImageToBitmapImage.Convert(appointmentImages.Images[4]);
            }
        }
 private void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.Column.FieldName == "Selected")
     {
         Guid key = (Guid)e.GetListSourceFieldValue("Id");
         if (e.IsGetData)
         {
             e.Value = GetIsSelected(key);
         }
         if (e.IsSetData)
         {
             SetIsSelected(key, (bool)e.Value);
         }
     }
 }
Пример #15
0
 void OnGridCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (IsServiceColumn(e.Column))
     {
         var key = Tuple.Create(AssociatedObject.GetRowByListIndex(e.ListSourceRowIndex), e.Column.FieldName);
         if (e.IsGetData)
         {
             bool res;
             e.Value = modifiedCells.TryGetValue(key, out res) ? res : false;
         }
         if (e.IsSetData)
         {
             modifiedCells[key] = (bool)e.Value;
         }
     }
 }
 void OnGridCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.Column.FieldName.StartsWith(UnboundColumnPrefix))
     {
         if (e.IsGetData)
         {
             bool res = false;
             modifiedCells.TryGetValue(new CellInfo(AssociatedObject.GetRowByListIndex(e.ListSourceRowIndex), e.Column.FieldName), out res);
             e.Value = res;
         }
         else
         {
             CellInfo modifiedCell = new CellInfo(AssociatedObject.GetRowByListIndex(e.ListSourceRowIndex), e.Column.FieldName);
             modifiedCells[modifiedCell] = true;
         }
     }
 }
        private void GridControl_OnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            var dataContext = (CustomUnBoundViewModel)DataContext;
            var row         = (StudentForCustomUnBound)e.Source.GetRowByListIndex(e.ListSourceRowIndex);

            switch (e.Column.FieldName)
            {
            case "UnBoundGrade":
                //注意事项:
                //1、UnBoundType=Object
                //2、ColumnFilterMode=DisplayText,否则筛选无值
                //3、一定不要设置ValueMember,否则ComboBox无显示
                if (e.IsGetData)
                {
                    var selectedItem = dataContext.Grades.FirstOrDefault(x => x.Id == row.Grade);
                    e.Value = selectedItem;
                }
                else if (e.IsSetData)
                {
                    var selectedItem = (IdNameObject)e.Value;
                    row.Grade = selectedItem.Id ?? 0;
                }
                break;

            case "UnBoundBillState":
                if (e.IsGetData)
                {
                    switch (row.BillState)
                    {
                    case 0:
                        e.Value = "禁用";
                        break;

                    case 1:
                        e.Value = "正常";
                        break;

                    default:
                        e.Value = "N/A";
                        break;
                    }
                }
                break;
            }
        }
        static void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            if (string.IsNullOrEmpty(GetComplexFieldName(e.Column)))
            {
                return;
            }
            ComplextPath complexPath = GetComplexPath(e.Column);
            GridControl  grid        = (GridControl)sender;

            if (e.IsGetData)
            {
                e.Value = complexPath.CalcValue(grid.GetRowByListIndex(e.ListSourceRowIndex));
            }
            if (e.IsSetData)
            {
                complexPath.SetValue(grid.GetRowByListIndex(e.ListSourceRowIndex), e.Value);
            }
        }
Пример #19
0
 private void GridControl_OnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.IsGetData && e.Column.FieldName == StringResources.Package)
     {
         var obj = (Report)((GridControl)sender).GetRowByListIndex(e.ListSourceRowIndex);
         if (obj.IsChildReports)
         {
             if (e.Value == null)
             {
                 e.Value = ImageResources.DCLMultiReport16.GetBitmapImage();
             }
         }
         else
         {
             e.Value = null;
         }
     }
 }
Пример #20
0
        static void OnGridControlCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            GridControl gridControl = (GridControl)sender;

            if (e.IsGetData)
            {
                UnboundColumnBase unboundColumn = FindUnboundColumn(gridControl, e.Column.FieldName);
                if (unboundColumn != null)
                {
                    unboundColumn.ReadValue(gridControl, e);
                }
                return;
            }
            if (e.IsSetData)
            {
                UnboundColumnBase unboundColumn = FindUnboundColumn(gridControl, e.Column.FieldName);
                if (unboundColumn != null)
                {
                    unboundColumn.WriteValue(gridControl, e);
                }
                return;
            }
        }
Пример #21
0
        private void OnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            if (Equals(e.Column.Tag, ColUnboundMethodsFieldName))
            {
                var key     = e.Column.FieldName;
                var row     = PmGridControl.GetRowByListIndex(e.ListSourceRowIndex) as PmConfiguratorData;
                var isvalid = _vm != null && row != null && _vm.ValidatePmMethods(key, row);
                var methods = (IDictionary <string, EditableBusinessObjectCollection <object> >)
                              e.GetListSourceFieldValue(PmConfiguratorData.PmMethodCodesPropertyName);

                if (e.IsGetData)
                {
                    var values = GetTrueMethods(key, methods).ToList();
                    if (!isvalid)
                    {
                        values.Insert(0, Properties.Resources.PmMethodIsUnavailable);
                    }
                    e.Value = values;
                }

                if (e.IsSetData && isvalid)
                {
                    var pms = GetTrueMethods(key, methods);
                    pms.Clear();
                    if (e.Value != null)
                    {
                        foreach (var p in (List <object>)e.Value)
                        {
                            pms.Add(p);
                        }
                    }

                    row.PmMethodCodesPropertyChanged();
                }
            }
        }
Пример #22
0
 void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.IsGetData)
     {
         var dirIdx = (int) e.Column.Tag;
         var row = e.ListSourceRowIndex;
         if (dirIdx == -1)
         {
             e.Value = row;
             if (row == 0)
             {
                 e.Value = "Frequency";
             }
             else if (row == _data.Count - 1)
             {
                 e.Value = "Mean Vel.";
             }
         }
         else
         {
             e.Value = _data[row][dirIdx];
         }
     }
 }
Пример #23
0
 void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.IsGetData)
     {
         var dirIdx = (int)e.Column.Tag;
         var row    = e.ListSourceRowIndex;
         if (dirIdx == -1)
         {
             e.Value = row;
             if (row == 0)
             {
                 e.Value = "Frequency";
             }
             else if (row == _data.Count - 1)
             {
                 e.Value = "Mean Vel.";
             }
         }
         else
         {
             e.Value = _data[row][dirIdx];
         }
     }
 }
Пример #24
0
        public static void GetEnvironmentInstanceDatabaseColumns(GridColumnDataEventArgs e)
        {
            if (e.IsGetData)
            {
                //Guid database_ID;
                //Guid instance_ID;
                //string instance_ID_String = null;

                switch (e.Column.FieldName)
                {
                case "ADDomain":
                    if (e.GetListSourceFieldValue("Instance_ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("Instance_ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //e.Value = instance.ADDomain;
                    }
                    else if (e.GetListSourceFieldValue("Database_ID") != null)
                    {
                        //database_ID = Guid.Parse(e.GetListSourceFieldValue("Database_ID").ToString());
                        //var database1 = Common.ApplicationDS.Databases.Where(db => db.ID == database_ID).First();
                        //var instance1 = Common.ApplicationDS.Instances.Where(ins => ins.ID == database1.Instance_ID).First();

                        //e.Value = instance1.ADDomain;
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Environment":
                    if (e.GetListSourceFieldValue("Instance_ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("Instance_ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //e.Value = instance.Environment;
                    }
                    else if (e.GetListSourceFieldValue("Database_ID") != null)
                    {
                        //database_ID = Guid.Parse(e.GetListSourceFieldValue("Database_ID").ToString());
                        //var database1 = Common.ApplicationDS.Databases.Where(db => db.ID == database_ID).First();
                        //var instance1 = Common.ApplicationDS.Instances.Where(ins => ins.ID == database1.Instance_ID).First();

                        //e.Value = instance1.Environment;
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "IsMonitored_Instance":
                    if (e.GetListSourceFieldValue("Instance_ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("Instance_ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //e.Value = instance.IsIsMonitoredNull() ? false : instance.IsMonitored;
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Name_Database":
                    if (e.GetListSourceFieldValue("Database_ID") != null)
                    {
                        //database_ID = Guid.Parse(e.GetListSourceFieldValue("Database_ID").ToString());
                        //var database = Common.ApplicationDS.Databases.Where(db => db.ID == database_ID).First();

                        //e.Value = database.Name_Database;
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Name_Instance":
                    if (e.GetListSourceFieldValue("Database_ID") != null)
                    {
                        //database_ID = Guid.Parse(e.GetListSourceFieldValue("Database_ID").ToString());
                        //var database2 = Common.ApplicationDS.Databases.Where(db => db.ID == database_ID).First();
                        //var instance2 = Common.ApplicationDS.Instances.Where(ins => ins.ID == database2.Instance_ID).First();

                        //e.Value = instance2.Name_Instance;
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Notes_Instance":
                    if (e.GetListSourceFieldValue("Instance_ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("Instance_ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //e.Value = instance.IsNotesNull() ? "" : instance.Notes;
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "SecurityZone":
                    if (e.GetListSourceFieldValue("Instance_ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("Instance_ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //e.Value = instance.IsSecurityZoneNull() ? "" : instance.SecurityZone;
                        //e.Value = instance.SecurityZone;
                    }
                    else if (e.GetListSourceFieldValue("Database_ID") != null)
                    {
                        //database_ID = Guid.Parse(e.GetListSourceFieldValue("Database_ID").ToString());
                        //var database1 = Common.ApplicationDS.Databases.Where(db => db.ID == database_ID).First();
                        //var instance1 = Common.ApplicationDS.Instances.Where(ins => ins.ID == database1.Instance_ID).First();

                        //e.Value = instance1.IsSecurityZoneNull() ? "" : instance1.SecurityZone;
                        //e.Value = instance1.SecurityZone;
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "SnapShotErrorIndicator":
                    if (e.GetListSourceFieldValue("Instance_ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("Instance_ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //string errorMessage = instance.SnapShotError;

                        //if (errorMessage.Length > 0)
                        //{
                        //    if (errorMessage.Equals("Connection Failure Exception"))
                        //    {
                        //        e.Value = GetImage("OrangeBall.png");
                        //    }
                        //    else
                        //    {
                        //        e.Value = GetImage("RedBall.png");
                        //    }
                        //}
                        //else
                        //{
                        //    e.Value = GetImage("GreenBall.png");
                        //}
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Total_DB_Data":
                    if (e.GetListSourceFieldValue("ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //var calculation = Common.ApplicationDS.Databases
                        //    .Where(inst => inst.Instance_ID == instance_ID)
                        //    .Select(inst => inst.DataSpaceUsage)
                        //    .Sum();

                        //e.Value = calculation.ToString();
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Total_DB_Index":
                    if (e.GetListSourceFieldValue("ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //var calculation = Common.ApplicationDS.Databases
                        //    .Where(inst => inst.Instance_ID == instance_ID)
                        //    .Select(inst => inst.IndexSpaceUsage)
                        //    .Sum();

                        //e.Value = calculation.ToString();
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Total_DB_Size":
                    if (e.GetListSourceFieldValue("ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //var calculation = Common.ApplicationDS.Databases
                        //    .Where(inst => inst.Instance_ID == instance_ID)
                        //    .Select(inst => inst.Size)
                        //    .Sum();

                        //e.Value = calculation.ToString();
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;

                case "Total_DB_SpaceAvailable":
                    if (e.GetListSourceFieldValue("ID") != null)
                    {
                        //instance_ID = Guid.Parse(e.GetListSourceFieldValue("ID").ToString());
                        //var instance = Common.ApplicationDS.Instances.Where(ins => ins.ID == instance_ID).First();

                        //var calculation = Common.ApplicationDS.Databases
                        //    .Where(inst => inst.Instance_ID == instance_ID)
                        //    .Select(inst => inst.SpaceAvailable)
                        //    .Sum();

                        //e.Value = calculation.ToString();
                    }
                    else
                    {
                        // TODO(crhodes): Who is sending us here>
                    }

                    break;
                }
            }
        }
Пример #25
0
 private void grdRetailSales_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     if (e.Column.FieldName == "BrandAxe.Name")
     {
         if (e.IsGetData)
         {
             Guid idBrandAxe = (Guid)e.GetListSourceFieldValue("IDBrandAxe");
             e.Value = BrandAxeData.Single(b => b.ID == idBrandAxe).Name;
         }
     }
     else if (e.Column.FieldName == "RetailSales")
     {
         if (e.IsGetData)
         {
             Guid idBrandAxe = (Guid)e.GetListSourceFieldValue("IDBrandAxe");
             DateTime monthDate = (DateTime)e.GetListSourceFieldValue("Date");
             retailSalesToAdd[e.ListSourceRowIndex].RetailSalesFromBenchmark = Math.Round(GetRetailSaleForBrandAxeFromBenchmark(monthDate, idBrandAxe));
             e.Value = Math.Round(retailSalesToAdd[e.ListSourceRowIndex].RetailSalesFromBenchmark);
         }
     }
 }
Пример #26
0
        // CustomUnboundColumnData Event for BrandAxe GridControl
        private void grdBrandAxes_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            Guid id = (Guid)e.GetListSourceFieldValue("ID");
            if (e.Column.FieldName == "AddBrand")
            {
                if (e.IsGetData)
                {
                    e.Value = GetIsSelected(id);
                }
                if (e.IsSetData)
                {
                    SetIsSelected(id, (bool)e.Value);

                    if (chkSelectAll.IsChecked == true && selectedBrands.Count != BrandAxeData.Count)
                        chkSelectAll.IsChecked = null;
                    if (chkSelectAll.IsChecked == false && selectedBrands.Count != BrandAxeData.Count)
                        chkSelectAll.IsChecked = null;
                }
            }
            else if (e.Column.FieldName == "RetailSales")
            {
                if (e.IsGetData)
                {
                    e.Value = Math.Round(GetRetailSales(id));
                }
            }

        }
Пример #27
0
        void grdProduct_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            if (e.Column != null && !string.IsNullOrEmpty(e.Column.Name))
            {
                if (e.Column.Name.StartsWith("RetailerType"))
                {
                    if (e.IsGetData)
                    {
                        AnimationProduct ap = grdProduct.GetRowByListIndex(e.ListSourceRowIndex) as AnimationProduct;

                        if (ap != null)
                        {
                            if (ap.RetailerTypeAllocation.ContainsKey(e.Column.Header.ToString()))
                            {
                                e.Value = ap.RetailerTypeAllocation[e.Column.Header.ToString()].ToString();
                            }
                            else
                            {
                                e.Value = "0";
                            }
                        }
                    }
                }
            }

        }
Пример #28
0
 public override void WriteValue(GridControl gridControl, GridColumnDataEventArgs e)
 {
     SetListSourceRowValue(gridControl, e.ListSourceRowIndex, FieldName, ConvertBack(e.Value));
 }
Пример #29
0
 public override void ReadValue(GridControl gridControl, GridColumnDataEventArgs e)
 {
     e.Value = Convert(e.GetListSourceFieldValue(FieldName));
 }
Пример #30
0
 private void OnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
 {
     UnboundColumns.GetEnvironmentInstanceDatabaseColumns(e);
 }
Пример #31
0
 public abstract void WriteValue(GridControl gridControl, GridColumnDataEventArgs e);
Пример #32
0
 public override void WriteValue(GridControl gridControl, GridColumnDataEventArgs e)
 {
 }
Пример #33
0
 private void gridControlCovMatrix_CustomUnboundColumnData_1(object sender, GridColumnDataEventArgs e)
 {
     GridColumn col = e.Column;
     CovMatrix m = gridControlCovMatrix.GetRow(e.ListSourceRowIndex) as CovMatrix;
     int colNum = int.Parse(col.FieldName);
     e.Value = m[colNum];
 }
        private void AllProductsDataGrid_OnCustomUnboundColumnData(object sender, GridColumnDataEventArgs e)
        {
            try
            {
                decimal venteComptoire = (decimal)AllProductsDataGrid.GetCellValueByListIndex(e.ListSourceRowIndex, "VentePriceComptoire");
                int qte = (int)AllProductsDataGrid.GetCellValueByListIndex(e.ListSourceRowIndex, "Qte");
                decimal dateconsultation = (decimal)AllProductsDataGrid.GetCellValueByListIndex(e.ListSourceRowIndex, "VentePrice");
            }
            catch (Exception)
            {

                //
            }
        }