Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
506
GridLinesDefault problem
posted

Hi everyone,

I am using UltraWebGrid version 2009 Vol 1.

I have got problems when I am trying to show grid lines.

Here is my aspx file, that is very simple.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server">
       </igtbl:UltraWebGrid>
    </div>
    </form>
</body>
</html>

And this is the code behind.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default21 : System.Web.UI.Page {
   protected void Page_Load(object sender, EventArgs e) {
      this.UltraWebGrid1.Columns.Add("Key1", "Key1");
      this.UltraWebGrid1.Columns.Add("Key2", "Key2");
      this.UltraWebGrid1.Columns.Add("Key3", "Key3");

      this.UltraWebGrid1.Rows.Add();
      this.UltraWebGrid1.Rows[0].Cells[0].Text = "11111";
      this.UltraWebGrid1.Rows[0].Cells[1].Text = "22222";
      this.UltraWebGrid1.Rows[0].Cells[2].Text = "33333";

      this.UltraWebGrid1.Rows.Add();
      this.UltraWebGrid1.Rows[1].Cells[0].Text = "44444";
      this.UltraWebGrid1.Rows[1].Cells[1].Text = "55555";
      this.UltraWebGrid1.Rows[1].Cells[2].Text = "66666";

      this.UltraWebGrid1.DisplayLayout.GridLinesDefault = Infragistics.WebUI.UltraWebGrid.UltraGridLines.Both;
   }
}

How can I show the gridlines on my grid?

Many thanks

Regards,

Xiaosu

Parents
No Data
Reply Children