Solved

GridView Edit Box

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) 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.…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
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…

821 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