title: How to get even columns from table in dataset through while loop without using IEnumerator
body: <p>I want to get the even columns only by using while loop without ienumerators. While loop must be in index format.</p>
  
  <p>The code is following:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
          {
  
              string query = "SELECT * FROM Notifications_ WHERE News_Status='1'";
  
              connection  obj_con= new connection();
  
  
              SqlCommand myCommand = new SqlCommand(query);
  
              DataSet ds = obj_con.executeQueryDataSet(myCommand);
  
              String temp_data = "&lt;table&gt; &lt;tr&gt;&lt;h2 align='center' style='background-color:#00254c; color:white; vertical-align:top'&gt;Highlights&lt;/h2&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;/tr&gt;";
  
  
  
              foreach (DataTable table in ds.Tables)
              {
                  foreach (DataRow row in table.Rows)
                  {
                      temp_data = temp_data + "&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='background-color:gray; color:white'&gt;&lt;b&gt;" + row["News_Day"] + "&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='background-color:#f6f6f6; color:#00254c'&gt;&lt;h2 align='center'&gt;" + row["News_date"] + "&lt;/h2&gt;&lt;/td&gt;&lt;td style='color:#00254c'&gt;&lt;b&gt;" + row["News_title"] + "&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=" + row["News_Link"] + " style='color:GrayText; text-decoration:none'&gt;" + row["News_Desc"] + "&lt;/td&gt;&lt;/tr&gt;";
                  }
              }
  
              this.notification_data.InnerHtml = temp_data + "&lt;/table&gt;";
          }
  </code></pre>