Beispiel #1
0
        public static void AddNewRecord(Record record, GridControl theGrid)
        {
            BindingList<Record> listDataSource = theGrid.DataSource as BindingList<Record>;

            listDataSource.Add(record);

            theGrid.DataSource = listDataSource;
        }
Beispiel #2
0
        private void CmdAddColumn_Click(object sender, EventArgs e)
        {
            Record newrecord = new Record(Convert.ToInt32(txtPageNumber.Text),txtSearchTerms.Text, txtApplication.Text);

            GridHelper.AddNewRecord(newrecord, this.gridConfig);
            r.Add(newrecord);

            GridHelper.SaveRecordFile(r);

            this.lstBoxApplications.Items.Clear();

            reFreshAppList();



        }