GridView控件怎么调整表格大小
怎么设置指定表格的宽和高

解决方案 »

  1.   

    我要指定的是 GridView控件里面的编辑和删除操作的宽和高  
      

  2.   

                    <asp:TemplateColumn>
                        <ItemTemplate>
                            <asp:LinkButton runat="server" CausesValidation="false" Height="80px" Width="200px" CommandName="Delete" Text="删除"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
      

  3.   

    GridView控件  里面的  选定编辑 选定删除  这个列的宽和高怎么调!!!!!!!!
      

  4.   

    如果只是静态设置,楼上已经说了。
    我发现一个组件,能实现动态拖动,即可以类似WinForm那样。
    http://www.51aspx.com/CV/GridViewPageable/
      

  5.   

       protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
                        if (e.Row.RowType == DataControlRowType.DataRow)
                        {
                            for (int i = 0; i = e.Row.Cells.Count; i++)
                            {
                                e.Row.Cells[i].Width = Unit.Pixel(100);
                                e.Row.Cells[i].Height = uint.Parse(22);
                            }
        }
      

  6.   

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) 
        { 
                        if (e.Row.RowType == DataControlRowType.DataRow) 
                        { 
                            for (int i = 0; i = e.Row.Cells.Count; i++) 
                            { 
                                e.Row.Cells[i].Width = Unit.Pixel(100); 
                                e.Row.Cells[i].Height = uint.Parse(22); 
                            } 
                         }
         }
      

  7.   

    不好意思有个地方的uint.Parse(22)==>Unit.Pixel(22);