how can find header controls in gridview?
<p>in webapplication, how can i find the controls in header and how can i bind the value dynamicall to that controls. this is my gridview looks like...</p>

<pre><code>    ----------------------------------------------
           |     October        |     November    |
    product|                    |                 |
           | self   |  Officer  | self   | officer|
    ----------------------------------------------
</code></pre>

<p>this is my gridview header all are lables, now i want to find the lable (october,noverber, self,officer..) how can i bind the data to them dynamically. can you help me, thank you.</p>

<p>i write like this</p>

<pre><code>      foreach (GridViewRow gr in grdProducts.Rows)
        {

          if (e.Row.RowType == DataControlRowType.Header)
           {

              Label lM = (Label)gr.FindControl("lblMon1");
                lM.Text = month1 + "-" + year1;
                lM = (Label)gr.FindControl("lblMon2");
                lM.Text = month2 + "-" + year2;
                lM = (Label)gr.FindControl("lblMon3");
                lM.Text = month3 + "-" + year3;
            }



        }
</code></pre>

<p>in gridvee row datbabound</p>
