Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Can DataKeyField support mulitple "fields" as the primary key?
posted

Hi, I think I know the answer to this one, and it most likely is "no", but I thoguth I'd throw it out there.

I am working with a resultset of a query from a database stored proc that I am then binding to the WebGrid. The resultset that comes back has a combination of three fields that constitute the uniqueidentifier for a row...

I do NOT have a single field that alone is a primary key.

My question is does WebGrid have any way accept three firelds as it's DataKeyField property, or is there any other way to assign it?

The data is not nested parent/child relaitonships, just a flat table, I'm just unfortunate enough to be stuck with a resultset that does not have one field that is unto itself a primary key

Any thoughts/suggestions?

Thanks,
Mike