GridView DataKeyNames
am 01.02.2008 16:04:04 von 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
RE: GridView DataKeyNames
am 01.02.2008 21:27:29 von Manish
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
"rodchar" wrote:
> 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