Solved

GridView Edit Box

Posted on 2011-03-07
3
633 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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net 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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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