Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

Gridview Format Lost During Edit Mode and Cancel?

This code works well to format the Gridview until I click Edit, thus placing the grid in edit-mode.

http://aspalliance.com/1268_CodeSnip_How_to_Group_Data_in_the_GridView_Control.all

Q. How can I keep the gridview formatting in Edit-Mode or Cancel-mode?
0
pointeman
Asked:
pointeman
  • 2
1 Solution
 
BuggyCoderCommented:
By default, the formatting string is applied to the field value only when the data-bound control that contains the BoundField object is in read-only mode. To apply the formatting string to field values while in edit mode, set the ApplyFormatInEditMode property to true.

From : http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.boundfield.dataformatstring%28VS.85%29.aspx
0
 
pointemanAuthor Commented:
I'm using a TemplateField
0
 
pointemanAuthor Commented:
thx
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now