Sunday, March 11, 2012

Validator control with DetailsView Edit

You can use *any* control. Use the TemplateField to define whatever controls that you want, including the validators.
I've tried to do that, but can't get the name of the BoundField to validate??

I guess I was not clear.

Replace the BoundField with a TemplateField containing the TextBox that you write databinding code to set its value and the validators. This is a basic goal when learning the DataGrid, GridView, and DetailsView. The BoundField is a quick solution but not feature rich. Once you need more features, you replace it with the TemplateField.


Thanks, now I got it!

No comments:

Post a Comment