What are you doing. You are creating a new
DataSet
rather than adding to the existing one.
First of all dont put Dataset into session. It is very bad practice. Rather populate the datagrid on demand.
So only doing
gridView3.DataSource = ds2;
gridView3.DataBind();
will be fine for you. No need to use For loop.
Also I recommend you to read some basic books.:cool: