Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi How to bind multiple dataset values into gridview dynamically?
Posted
Comments
thatraja 9-Dec-13 8:35am    
What's the issue?
Arun Aswin 10-Dec-13 0:06am    
thanks your reply.
actually i have five executive name in my drop down list.i need to bind this five executive booked customer details in same gridview.
TrushnaK 9-Dec-13 8:37am    
post your code and senario what you want.

1 solution

For this you have to fix the gridview design
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="true" />
N.B. There is no need to fix column Use AutoGenerateColumns="true"

And Bind your dataset one by one it will display all data in Gridview as per table design
Code should like
//Something dynamic
public void BindGrid(DataSet ds)
{
GridView1.DataSource=ds.Table[0];
GridView1.DataBind();
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900