title: How to add styles to the datatable
body: <p>Using CSharp, how can I set the width, height, border color etc to the datatable. I want to add some features to the table which gives the look cool. </p>
  
  <pre><code>    for (int i = 0; i &lt;= 5; i++)
      {
          if (myQuantity[i]!=null &amp;&amp; myQuantity[i].Length&gt;0)
          {
              row = dt.NewRow();
              row["Name"] = myName[i];
              row["Quantity"] = myQuantity[i];
              row["Price"] = myPrice[i];
  
              c = Convert.ToInt32(myQuantity[i]);
  
              int price = Convert.ToInt32(myPrice[i]) * c;
  
  
              row["Amount"] = price;
              // row["ImageUrlPath"] = "~/Images/cross.png";
              dt.Rows.Add(row);
  
          }
      }
  
    //  dt.Rows[0].Delete();
      GridView1.DataSource = dt;
      GridView1.DataBind();
  
  
  } 
  </code></pre>