DataGridView

  • Thread starter Erencan SAÐIROÐLU
  • 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?
 
Ad

Advertisements

K

Kevin Spencer

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.
 
Ad

Advertisements

E

Erencan SAÐIROÐLU

i've used dataset which on form. I don't create new dataset so it works.

Kevin thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top