Click here to Skip to main content
15,906,097 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I need datagrid view fill at runtime

Like that i need pls help me


Regards,
kpt
Posted
Comments
Simon_Whale 17-Jun-11 9:33am    
you need to expand on this! fill with data from the database? from user entered text? from files? xml?

C#
GridView1.DataSource = dsData;//Assign data(from your database) to this Dataset dsData

GridView1.DataBind();
 
Share this answer
 
Comments
Monjurul Habib 17-Jun-11 14:57pm    
good call, my5.
BindingSource bindingSource1 = new BindingSource();
GridView.DataSource = bindingSource1;
 
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