Solved

GridView Edit Box

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now