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

x
?
Solved

asp.net Edit Template looks sloppy - way to big

Posted on 2011-02-14
2
Medium Priority
?
340 Views
Last Modified: 2012-05-11
I have a .net grid with edit link enabled.  It works fine, but when in edit mode, the text boxes are way too big and span the records out well pass my initial grid boundaries, which makes it hard to edit.  Is there a way to set the edit field sizes?  

Thanks, I can provide screenshots if needed.
0
Comment
Question by:JT_SIRO
2 Comments
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 248 total points
ID: 34904390
A screen shot would be helpful :)

But without seeing one, you should be able to use the "ControlStyle-Width" property of the BoundField to restrict the width, or inline width attributes if you are using a template field. If you are using "AutoGenerateColumns" rather than defining the columns yourself, then i don't think you will have the same level of control.
0
 
LVL 21

Accepted Solution

by:
MogalManic earned 252 total points
ID: 34915320
Screen shots and sample code would be helpful.

If you are using a template field, you can control exactly how the fields are rendered.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question