Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can we bind a gridview using dll.with example
Posted
Comments
Kenneth Haugland 8-Aug-12 7:00am    
This is not a good question. Could you give us more detailed information on what you are actually trying to do?

1 solution

C#
gridview1.DataSource = Yourdll.YourClass.GetData(); //GetData returns datatable or dataset

gridview1.AutoGenerateColumns = true;
gridview1.DataMember = "Name_of_your_datatable"; //If you're using DataSet
gridview1.DataBind();


But your question is fuzzy.

Hope it helps.
 
Share this answer
 
Comments
Kenneth Haugland 8-Aug-12 8:41am    
Doesn't help me for sure :(

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