Edit GridView Fields

Posted on 2012-09-01
Last Modified: 2012-09-07
i  have GridView and DetailedView but would like to change the field size in both these controls like making a wider and bigger field where users can add more comments basically multiline text box.  so far i have seen when the GridViews are edit mode the fields are so small so how can we change this?  can someone point to me  a good tutorial about that or even show me here?  thanks
Question by:karinos57
    LVL 20

    Accepted Solution

              <asp:templatefield headertext="MultiLine TextBox">
    <asp:TextBox id="txtName" TextMode="MultiLine"
                    Text= '<%# Eval("datatablecolumnName") %>'

    Open in new window

    LVL 19

    Expert Comment

    by:Manoj Patil
    For this you need to convert your Cell as an TemplateField.
    Check the following tutorial.

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now