GridView DataKeyNames

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,
if my DataTable has a primary key set and I assign my GridView's DataSource
my datatable will the primary key be automatically applied to the
DataKeyNames?

thanks,
rodchar
 
If you are binding the control at run time then you will have to assign the
DataKeyNames property to the Key field in your table.


Regards,
Manish
www.ComponentOne.com
 

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

Back
Top