I have one DataGridViewComboBoxColumn in FormA, and I have a button that opens another FormB which enable user from adding a new item. When the user add a new item, it will not appear until you reopen formA, I want the added item to appear directly, how can I do this? thank you in advance. Following is my code:
Following is the code in FormB:
DataGridViewComboBoxColumn itemCmbClmn = new DataGridViewComboBoxColumn();
itemCmbClmn.ValueMember = itemID.ToString();
itemCmbClmn.DisplayMember = txtItemAr.Text;
BindingSource bs = new BindingSource();
DataTable itemDataTable = prcFrm.ItemData;
bs.DataSource = itemDataTable;
itemCmbClmn.DataSource = bs;
The added item will appear but you need to reopen the form, any help please?