private void FillGrid()
        {
            AutoNoteControls.RefreshCache();
            _listAutoNoteControls = AutoNoteControls.GetDeepCopy();
            gridMain.BeginUpdate();
            gridMain.ListGridColumns.Clear();
            GridColumn col = new GridColumn(Lan.g("FormAutoNoteControls", "Description"), 100);

            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g("FormAutoNoteControls", "Type"), 100);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g("FormAutoNoteControls", "Prompt Text"), 100);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g("FormAutoNoteControls", "Options"), 100);
            gridMain.ListGridColumns.Add(col);
            gridMain.ListGridRows.Clear();
            GridRow row;

            for (int i = 0; i < _listAutoNoteControls.Count; i++)
            {
                row = new GridRow();
                row.Cells.Add(_listAutoNoteControls[i].Descript);
                row.Cells.Add(_listAutoNoteControls[i].ControlType);
                row.Cells.Add(_listAutoNoteControls[i].ControlLabel);
                row.Cells.Add(_listAutoNoteControls[i].ControlOptions);
                gridMain.ListGridRows.Add(row);
            }
            gridMain.EndUpdate();
        }
Esempio n. 2
0
        ///<summary></summary>
        private void FillGrid()
        {
            AutoNoteControls.RefreshCache();
            _listAutoNoteControls = AutoNoteControls.GetDeepCopy(false);
            gridMain.BeginUpdate();
            gridMain.ListGridColumns.Clear();
            GridColumn col = new GridColumn("", 100);

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

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