DataGridView

  • Thread starter Thread starter Erencan SAÐIROÐLU
  • Start date Start date
E

Erencan SAÐIROÐLU

Hi To All,
I've a typed dataset and datagridview.
I add a new row typed dataset but datagridview not refresh.
I've unchecked datagridview "enable adding" "enable editing" on the grid
when i design mode.

my code is here...

KeyGeneratorDataSet ds = new KeyGeneratorDataSet();
KeyGeneratorDataSet.KeyGeneratorDataTable table = new
KeyGeneratorDataSet.KeyGeneratorDataTable();
KeyGeneratorDataSet.KeyGeneratorRow row =
ds.KeyGenerator.NewKeyGeneratorRow();

row.Sebep = textBoxExplain.Text;
row.VerilenSifre = textBoxSerialKey.Text;
row.Musteri = textBoxCustomer.Text;
row.BildirilenSifre = textBoxCustomerKey.Text;
ds.KeyGenerator.Rows.Add(row);

keyGeneratorTableAdapter.Update(ds); //DataGridview don't
update.

Do you have an idea?
 
You created a new DataSet and DataTable, but you didn't assign the
TableAdapter to the DataTable.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.
 
i've used dataset which on form. I don't create new dataset so it works.

Kevin thanks for your help.
 
Back
Top