把 <asp:DataGrid 标签里面的 height 属性去掉,或把 style="" 中 height 样式去掉就可以了。

解决方案 »

  1.   

    绑定的代码可以这样写,不够20行,增加空行。参考一下: DataSet printprods = new DataSet();
    printCommand.Fill(printprods, "temporder"); int i;
    int RowCount;
    string[] strTemp = new string[printprods.Tables[0].Columns.Count];
    RowCount = printprods.Tables[0].Rows.Count;
    for(i=0;i<20-RowCount;i++)
    {
    printprods.Tables[0].Rows.Add(strTemp);

    proGrid.DataSource=printprods;
    proGrid.DataBind();
      

  2.   

    把 <asp:DataGrid 标签里面的 height 属性去掉,或把 style="" 中 height 样式去掉就可以了。nod
      

  3.   

    呵呵,都是VS.NET默认设置惹的祸啊
    去掉height属性;手写代码就ok的
      

  4.   

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchTopQuestionsAboutASPNETDataGridServerControl.asp
      

  5.   

    就是把它自动生成的样式去掉就好了 我想让HTML不自动添加<font family="宋体"></font> 该怎么办呢?真恼人:(
      

  6.   

    是啊,真是受不了,每次在<from>和</from>之间肯定有这鸟东西的!