How do I get entity for primary key using EntityDataSource in ASP.NET
Posted
by drasto
on Stack Overflow
See other posts from Stack Overflow
or by drasto
Published on 2010-05-15T05:09:07Z
Indexed on
2010/05/15
5:14 UTC
Read the original article
Hit count: 405
I have a GridView
in my ASP.NET application that takes data to be rendered from EntityDataSource
. GridView
allows user to select rows. I want to get the entity that corresponds to the row user selected. I can get from GridView
the ID(primary key) of the entity that corresponds to the row selected. How can I get the Entity that has that ID(primary key) ?
© Stack Overflow or respective owner