Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
How Do Edit the width of the "Update View" Gridview on an asp.net 3.5 web page
I want to reduce the width on the cells in an gridview control. I was able to do this for the display template, but once the user clicks on edit , the width is much bigger.
8/22/2022 - Mon
You should be able to do this via the gridview row editing command in the code behind or in the editing row style in the properties of the control. It should be no different for the display template. When you edit the template you should see the edit columns also. However columns that the data values are to large may override your changes. Can you provide your code?
How can I make only a few columns editable??
In the gridview templates view you can change the editable controls (ie text boxes etc... to label controls so they only show the data. You should also probably change your datasource so it doesn't update the fields also.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
I just see emptydatatemplate and pagertemplate.
Did you convert your columns to template fields after you setup your datasource? You can do this by editing the columns in the gridview. Select the column and then check the convert to template box. They should then be available.
I am using vs 2010 , i re configured the data source but didnt see the convert to template option>?
to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent