Solved

GridView Edit Box

Posted on 2011-03-07
3
637 Views
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
GridViewEditWindow.png
0
Comment
Question by:SparrowVideo
[X]
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
3 Comments
 
LVL 29

Expert Comment

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

Accepted Solution

by:
agarwalrahul earned 125 total points
ID: 35058664
0
 

Author Comment

by:SparrowVideo
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"
	onrowediting="gvSkill_onRowEditing"
	DataKeyNames="SkillId" AllowPaging="True" 
	onpageindexchanging="gvSkill_onPageIndexChanging" 
	onrowdeleting="gvSkill_onPageRowDeleting" 
	onprerender="gvSkill_onPreRender" 
	onpageindexchanged="gvSkill_onPageIndexChanged" 
	onrowcancelingedit="gvSkill_onCancelingEdit" 
	onrowcreated="gvSkill_onRowCreated" onrowdatabound="gvSkill_onRowDataBound" 
	onrowupdated="gvSkill_onRowUpdated" onrowupdating="gvSkill_onRowUpdating" 
	ondatabound="gvSkill_onDataBound">
	<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" />
  <Columns>
	<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>
  </Columns>
</asp:GridView>

<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
	ConnectionString="<%$ ConnectionStrings:MAconnect %>" 
	SelectCommand="A10GetSkillsBySkillSetCatAndSubj" SelectCommandType="StoredProcedure" 
	UpdateCommand="A10UpdateSkillDescGradesSeq" UpdateCommandType="StoredProcedure"
	DeleteCommand="A10DeactivateSkill" DeleteCommandType="StoredProcedure"
>
	<SelectParameters> 
		<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" />
	</SelectParameters> 

	<UpdateParameters> 
	  <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" /> 
	</UpdateParameters> 

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

</asp:SqlDataSource>

</td>									
</tr>
<tr>
<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" 
	DataValueField="GradeId" 
	onselectedindexchanged="ddlStartGrade_onSelectedIndexChanged">
</asp:DropDownList>
<asp:DropDownList ID="ddlEndGrade" runat="server" 
	DataSourceID="SqlDataSource3" DataTextField="Grade" 
	DataValueField="GradeId" 
	onselectedindexchanged="ddlEndGrade_onSelectedIndexChanged">
</asp:DropDownList>                                        
<asp:SqlDataSource ID="SqlDataSource3" runat="server" 
		ConnectionString="<%$ ConnectionStrings:MAconnect %>" 
		SelectCommand="A10GetGradeList" SelectCommandType="StoredProcedure" >
</asp:SqlDataSource>
<asp:button id="txtSaveSkill" tabIndex="10" runat="server" Width="112px" 
	Height="35" Text="Save Skill" onclick="btnSaveSkill_onClick"></asp:button>

Open in new window

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

624 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