Ejemplo n.º 1
0
        private void FillGrid()
        {
            ProcApptColors.RefreshCache();
            gridMain.BeginUpdate();
            gridMain.Columns.Clear();
            ODGridColumn col = new ODGridColumn(Lan.g("FormProcApptColors", "Code Range"), 0);

            gridMain.Columns.Add(col);
            gridMain.Rows.Clear();
            ODGridRow row;

            for (int i = 0; i < ProcApptColors.Listt.Count; i++)
            {
                row = new ODGridRow();
                row.Cells.Add(ProcApptColors.Listt[i].CodeRange);
                row.ColorText = ProcApptColors.Listt[i].ColorText;
                gridMain.Rows.Add(row);
            }
            gridMain.EndUpdate();
        }
Ejemplo n.º 2
0
        private void FillGrid()
        {
            ProcApptColors.RefreshCache();
            _listProcApptColors = ProcApptColors.GetDeepCopy();
            gridMain.BeginUpdate();
            gridMain.ListGridColumns.Clear();
            GridColumn col = new GridColumn(Lan.g("FormProcApptColors", "Code Range"), 0);

            gridMain.ListGridColumns.Add(col);
            gridMain.ListGridRows.Clear();
            GridRow row;

            for (int i = 0; i < _listProcApptColors.Count; i++)
            {
                row = new GridRow();
                row.Cells.Add(_listProcApptColors[i].CodeRange);
                row.ColorText = _listProcApptColors[i].ColorText;
                gridMain.ListGridRows.Add(row);
            }
            gridMain.EndUpdate();
        }