Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Which databind control supports header template to bind from datasource

i want to add headers dynamicall i dont know how many columns will bind. so i need to bind control inside header template with datasource please help if any databind control supports that or any solution for that

i tried with GRIDVIEW,LISTVIEW,REAPETER,DATALIST..any help will be appreciated.

Thanks

What I have tried:

i tried with GRIDVIEW,LISTVIEW,REAPETER,DATALIST..any help will be appreciated.
Posted
Updated 26-Jun-16 8:57am
Comments
Karthik_Mahalingam 24-Jun-16 5:28am    
use GRIDVIEW with AutoGeneratedColumns = true;

1 solution

please follows below steps in Visual studio
Step 1: Drag and Drop a Data Gridview to Windows Form
Step 2: Choose DataSource -> Add Project DataSource
Step 3: Select Database click Next
Step 4: Select DataSet click Next
Step 5: New Connection
Step 6: Fill server details and Click Ok
Step 7: Click Next and Select Source Table and Click finish
 
Share this answer
 

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