B
bill
All,
I have the following:
BindingSource bs = new BindingSource();
private void initDataGridView(DataGridView dgv)
{
// dsForDGV is a datset object on the form
dsForDGV.Tables[0].Rows.Add("abc");
bs.DataSource = dsForDGV;
bs.DataMember = dsForDGV.Tables[0].TableName;
dgv.DataSource = bs;
dgv.Refresh();
}
Nothing appears in the DataGridView. What am I missing?
TIA,
Bill
I have the following:
BindingSource bs = new BindingSource();
private void initDataGridView(DataGridView dgv)
{
// dsForDGV is a datset object on the form
dsForDGV.Tables[0].Rows.Add("abc");
bs.DataSource = dsForDGV;
bs.DataMember = dsForDGV.Tables[0].TableName;
dgv.DataSource = bs;
dgv.Refresh();
}
Nothing appears in the DataGridView. What am I missing?
TIA,
Bill