Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


GridView Edit Box

Posted on 2011-03-07
Medium Priority
Last Modified: 2013-11-05
OK, I have a page with a GridView.  

I allow editing a row and it all works fine, except the edit box is too small.  My customer rightfully complains that it only show 3-4 words.

Where can the size of the little box be changed?
 Pls see image.

Thanks, Jim in Florida
Question by:SparrowVideo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 29

Expert Comment

by:Paul Jackson
ID: 35058378
Can you post the code for the gridview
LVL 13

Accepted Solution

Rahul Agarwal earned 500 total points
ID: 35058664

Author Comment

ID: 35066004
Here is the .aspx code
<asp:GridView ID="gvSkill" DataSourceID="SqlDataSource2"
	runat="server" Caption="Skills"  AutoGenerateColumns="False"
	CaptionAlign="Top" CellPadding="4" ForeColor="#333333" 
	Width="900px" onselectedindexchanged="gvSkill_onSelectedIndexChanged"
	DataKeyNames="SkillId" AllowPaging="True" 
	onrowcreated="gvSkill_onRowCreated" onrowdatabound="gvSkill_onRowDataBound" 
	onrowupdated="gvSkill_onRowUpdated" onrowupdating="gvSkill_onRowUpdating" 
	<PagerSettings FirstPageText="Page: &amp;lt;&amp;lt;" 
		LastPageText="Page: &amp;gt;&amp;gt;" />
	<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
	<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
	<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" 
		Font-Bold="True" Font-Names="Courier New" Font-Size="X-Large" />
	<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
	<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" 
		Font-Names="Arial" Font-Size="Small" />
	<EditRowStyle Font-Bold="True" />
	<AlternatingRowStyle BackColor="White" />
	<asp:CommandField ShowSelectButton="True" > <ItemStyle Width="20px"/> </asp:CommandField>
	<asp:CommandField ShowEditButton="True" > <ItemStyle Width="20px"/> </asp:CommandField>
	<asp:CommandField ShowDeleteButton="True" > <ItemStyle Width="20px"/> </asp:CommandField>
	<asp:BoundField DataField="SkillId" HeaderText="Skill Id" ReadOnly="True" ><ItemStyle Width="20px"></ItemStyle></asp:BoundField>
	<asp:BoundField DataField="Description" HeaderText="Skill Description"> <ItemStyle Width="300px"  ></ItemStyle></asp:BoundField>
	<asp:BoundField DataField="StartGrade" HeaderText="Start Grade" > <ItemStyle Width="20px"></ItemStyle></asp:BoundField>
	<asp:BoundField DataField="EndGrade" HeaderText="End Grade" > <ItemStyle Width="20px"></ItemStyle> </asp:BoundField>
	<asp:BoundField DataField="SequenceNumber" HeaderText="Seq"> <ItemStyle Width="20px"></ItemStyle></asp:BoundField>

<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
	ConnectionString="<%$ ConnectionStrings:MAconnect %>" 
	SelectCommand="A10GetSkillsBySkillSetCatAndSubj" SelectCommandType="StoredProcedure" 
	UpdateCommand="A10UpdateSkillDescGradesSeq" UpdateCommandType="StoredProcedure"
	DeleteCommand="A10DeactivateSkill" DeleteCommandType="StoredProcedure"
		<asp:ControlParameter ControlID="ddlStandards" PropertyName="SelectedValue"
			Name="StandardId" Type="Int32" DefaultValue="1" />
		<asp:ControlParameter ControlID="ddlSkillSets" PropertyName="SelectedValue"
			Name="SkillSetId" Type="Int32" DefaultValue="2" />
		<asp:ControlParameter ControlID="ddlCategories" PropertyName="SelectedValue"
			Name="CategoryId" Type="Int32" DefaultValue="3" />
		<asp:ControlParameter ControlID="gvSubject" PropertyName="SelectedValue"
			Name="SubjectId" Type="Int32" DefaultValue="-1" />

	  <asp:Parameter Name="SkillId" Type="Int32" /> 
	  <asp:Parameter Name="Description" Type="String"/> 
	  <asp:Parameter Name="StartGrade" Type="String"/> 
	  <asp:Parameter Name="EndGrade" Type="String"/> 
	  <asp:Parameter Name="SequenceNumber" Type="Int32" /> 

	  <asp:Parameter Name="SkillId" Type="Int32" /> 


<td colspan="2">
<asp:button id="btnAddSkill" tabIndex="8" runat="server" Width="112px" 
	Height="35" Text="New Skill" onclick="btnAddSkill_onClick"></asp:button>&nbsp;
<asp:TextBox ID="txtNewSkill" runat="server" Width="305px"
	Height="25px" ></asp:TextBox>&nbsp;
<asp:DropDownList ID="ddlStartGrade" runat="server" 
	DataSourceID="SqlDataSource3" DataTextField="Grade" 
<asp:DropDownList ID="ddlEndGrade" runat="server" 
	DataSourceID="SqlDataSource3" DataTextField="Grade" 
<asp:SqlDataSource ID="SqlDataSource3" runat="server" 
		ConnectionString="<%$ ConnectionStrings:MAconnect %>" 
		SelectCommand="A10GetGradeList" SelectCommandType="StoredProcedure" >
<asp:button id="txtSaveSkill" tabIndex="10" runat="server" Width="112px" 
	Height="35" Text="Save Skill" onclick="btnSaveSkill_onClick"></asp:button>

Open in new window


Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

722 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