GridView DataKeyNames
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
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