Regarding binding array to gridview
<p>Hi
I have created session array :</p>

<pre><code> int[] a = (int[])Session["values"];
</code></pre>

<p>Now i have to bind this value to my gridview. I have one column (boundfield in my gridview) in gridview.
I used code to bind array to gridview as follows, but its giving last value only as i want all the values to bind :</p>

<pre><code>     for (int i = 0; i &lt; a.Length; i++)
            {
                str = "select * from Quest_Info where Quest_id='" + a[i] + "' order by Quest_id";
                SqlDataAdapter da2 = new SqlDataAdapter(str, sqlconn);
                ds2 = new DataSet();
                da2.Fill(ds2, "Result");
            reviewgrid.DataSource = ds2;
            reviewgrid.DataBind();
}
</code></pre>

<p>Which code will work for this?
Asp.net, c#
Thank You.</p>
