Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Behaviour of Edit Row in GridView

Status
Not open for further replies.

Waynest

Programmer
Jun 22, 2000
321
GB
asp.net 2, SQL 2000

Ive used the 'enable edit' feature of the smart tag in a gridview control. The row of my grid has 12 columns & only one is editable - a price field which is a money datatype.

When in edit mode the column becomes much too wide and appears in this format 0.0000

When not in edit mode I get £0.00 as determined by my format string which is fine.

How do I get control of the column width & format whilst in edit mode?
 
make the column a template column and add your custom formatting. width, font, color, controls.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I've no idea if you are using the wizard controls in visual studio, but usually you would specify the format in the control when you have placed in the EditTemplate.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top