View Single Post
 
Old October 13th, 2009, 02:20 PM
carewithl carewithl is offline
Authorized User
 
Join Date: Jun 2009
Posts: 32
Thanks: 17
Thanked 0 Times in 0 Posts
Default Author claims default value can’t be set declaratively

hi

On page 247 we handle dvwCategory’s ItemCreated event, and if the control is in insert mode, we get a reference to the textbox for the Importance field and set its default value to 0. Author claims default value can’t be set declaratively and for that reason we needed to handle dvwCategory’s ItemCreated event.

a) But as far as I know, if dvwCategory had InsertItemTemplate column defined, then we could set default value declaratively? If my assumption is correct, then why didn't author choose that option instead?

thanx