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
rodchar [ Fr, 01 Februar 2008 16:04 ] [ ID #1921626 ]

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
Manish [ Fr, 01 Februar 2008 21:27 ] [ ID #1921666 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » GridView DataKeyNames

Vorheriges Thema: Re: 10 Reasons Why PHP is Better than ASP
Nächstes Thema: help!!! Login failed for user .