How to set DataTable's style, such as borderwidth, etc,

  //-- 放入表中ShowPaperInfo.aspx
   Table1.BorderWidth=new Unit("1px");
   Table1.BorderColor=Color.Black;
   Table1.CellPadding=8;
   Table1.CellSpacing=0;
   
   Table1.GridLines=GridLines.Both;
  
   TableRow row = new TableRow();
   TableCell cell = new TableCell();
   row.Height=new Unit("1cm");//控制行高
   

你可能感兴趣的:(Datatable)