Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Edit GridView Fields

Hi,
 
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
0
karinos57
Asked:
karinos57
1 Solution
 
informaniacCommented:
<columns>
          <asp:templatefield headertext="MultiLine TextBox">
            <itemtemplate>
<asp:TextBox id="txtName" TextMode="MultiLine"
                Text= '<%# Eval("datatablecolumnName") %>'
                runat="server"/>

Open in new window

0
 
Manoj PatilSr. Software EngineerCommented:
For this you need to convert your Cell as an TemplateField.
Check the following tutorial.

http://www.asp.net/web-forms/tutorials/data-access/custom-formatting/using-templatefields-in-the-gridview-control-cs
0
 
karinos57Author Commented:
thnx
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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