グリッドビューを使用している場合は、ヘッダーとテーブルの行が1行しかない場合があります行数が増えてからテーブル全体のサイズが大きくなり、ヘッダーが縮小して見栄えが悪くなると、レコードが少なくなると、この行は本当に大きくなります。グリッドビューのヘッダーと行のサイズが大きい場合レコードが少ない場合、行が多い場合は
! http://www.freeimagehosting.net/43572
ここで問題は何ですか?おかげ
<asp:GridView ID="Grid_Messagetable" runat="server" BorderStyle="Ridge" BorderWidth="5"
CssClass="Grid_MsgTbl" CellPadding="1" CellSpacing="1" AllowPaging="False" SelectedIndex="0"
DataKeyNames="MsgID" ShowHeaderWhenEmpty="false" OnRowDeleting="Grid_Messagetable_RowDeleting"
OnRowDataBound="MyGrid_RowDataBound" AutoGenerateColumns="False" AllowSorting="true"
OnSorting="gridView_Sorting">
.Grid_MsgTbl
{
text-align: center;
z-index: 1;
left: 7px;
top: 5px;
position: relative;
height: 308px;
width: 646px;
right: 17px;
bottom: 524px;
}
http://www.freeimagehosting.net/43572
行とGridviewの高さを明示的に設定しないでください。 – adatapost