how to pass values dynamically to gridview rows using label?
<p>I've <code>gridview</code> which contain <code>itemtemplate</code> and inside <code>itemtemplate</code> contains <code>label</code>. I want to place <code>text</code> in <code>label</code> which values comes from <code>codebehind</code>.
I want this type of <code>output</code> in <code>gridview</code>.
<a href="http://i.stack.imgur.com/HsC6f.png" rel="nofollow">IMG</a></p>

<p><code>Proj_Title</code> and <code>Total_Issue</code> working fine but how to set <code>label</code> text against every row .
Here is my aspx code :</p>

<pre><code> &lt;asp:GridView ID="g9" runat="server" OnRowDataBound="g9_RowDataBound" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"&gt;
 &lt;AlternatingRowStyle BackColor="White" /&gt;
 &lt;Columns&gt;
 &lt;asp:TemplateField HeaderText="Project_Title"&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:Label runat="server" Text='&lt;%#Eval("proj_title") %&gt;'&gt;&lt;/asp:Label&gt;
 &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField HeaderText="Total Issue"&gt;
 &lt;ItemTemplate&gt;
&lt;asp:Label ID="Label1" runat="server" Text='&lt;%#Eval("Count") %&gt;'&gt;&lt;/asp:Label&gt;
 &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField HeaderText="RESULT"&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:Label ID="issue" runat="server"  ForeColor="Blue" Font-Size="Large" Width="200px"  &gt;&lt;/asp:Label&gt;
 &lt;asp:Label ID="issue2" runat="server" ForeColor="Blue" Font-Size="Large" Width="200px"  &gt;&lt;/asp:Label&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;
  &lt;/Columns&gt;
&lt;/asp:GridView&gt;
</code></pre>

<p>ASPX.CS </p>

<pre><code> protected void Page_Load(object sender, EventArgs e)
{
 SqlCommand cmd3 = new SqlCommand("USE SKDM SELECT  proj_title , COUNT (*) as Count FROM Issue WHERE proj_title is NOT null GROUP BY proj_title", cnn);
SqlDataAdapter adp = new SqlDataAdapter(cmd3);
DataSet ds = new DataSet();
adp.Fill(ds);
cnn.Open();
cmd3.ExecuteNonQuery();
cnn.Close();
g9.DataSource = ds;
g9.DataBind();
}
 protected void g9_RowDataBound(object sender, GridViewRowEventArgs e)
 {
 if (e.Row.RowType == DataControlRowType.DataRow)
 {
 SqlCommand cmd3 = new SqlCommand("USE SKDM SELECT  proj_title , COUNT (*) as Count FROM Issue WHERE proj_title is NOT null GROUP BY proj_title", cnn);
 cnn.Open();
 SqlDataReader dr = cmd3.ExecuteReader();
 int[] arr = new int[2];
 while (dr.Read())
 {
 arr[0] = dr.GetInt32(1);
 }
 if (arr[0] == 2)
 {
 Label l3 = (Label)e.Row.FindControl("issue2");
 string s = "BAD";
 l3.Text = s;
 } 
 dr.Close();
 cnn.Close();
 if (arr[0] == 2)
 {
  Label l2 = (Label)e.Row.FindControl("issue");
  string s = "GOOD";
  l2.Text = s;
  }
  if (arr[1] == 5)
  {
  Label ab = (Label)e.Row.FindControl("issue2");
        ab.Text = "Poor";
 }
 } 
 } 
</code></pre>

<p>I want when <code>count</code> value is <code>2</code> then result will be <code>Good</code> shown in <code>Result</code> column against row and when <code>count</code> value is <code>5</code> then result will be <code>Poor</code> and set label <code>Result</code> column .Thanks</p>