This is my experiences. I can bind the DataGridView using DataSet and Collection.
1st expericence, If using DataSet, my DataGridView
have an empty row at the last row (have to set AllowUserToAddRows Property to False). If using Collection, my DataGridView
do not have empty row at the last row.
2nd experience, I know how to rebind the DataGridView using DataSet. But I
dont know how to rebind the DataGridView using Collection.
My collection as follow,
private Collection<MasterAgentCompany> myDGV = new Collection<MasterAgentCompany>();
private BindingSource bindingSource = new BindingSource();
dgv1.DataSource = bindingSource;
bindingSource.DataSource = myDGV;
/*THIS CODE IS OK ON 1ST TIME LOAD*/
/*IF I'M CALLING THIS CODE AGAIN, MY DATAGRIDVIEW NOT REFRESH THE NEW RECORD*/
I'm looking the right technique to rebind DataGridView using Collection
I'm stuck. Really looking for help
View Complete Post