This is a migrated thread and some comments may be shown as answers.

Hide Primary Key field (zero) on Add

0 Answers 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 17 Sep 2011, 03:33 AM
How do you hide the primary key field of a column when Adding?  On edit, I want to show the value of the primary key, but show it read-only, so fine I add .ReadOnly() to the column.  But when I am Adding it shows zero read-only.  I don't want to show it at all?  Perhaps I have default turned on somewhere that it automatically shows zero?  

This an ajax bound grid so custom Editor templates don't work.

I attached a screen show to illustrate.

Steve
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Share this question
or