gridview / objectdatasource problem with (hidden) ID column

G

Guest

Hi,

i programmed a asp.net 2.0 gridview to a objectdatasource.
when i show all the columns of the object in the gridview and i click edit
and update, i get the whole object with all it's params in my handler object.
That's good.
Then i make 2 columns read-only, that goes well also.

But then: i don't want the object id to show in the gridview, because it's
non-informative for the user and it's ugly :)
so i mark that field 'invisible'

but then what happens is this: when i click edit, update the object id is 0
(zero, it's a numeric field)

What can i do to solve this problem?

kind regards,
michel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top