Click here to Skip to main content
16,009,112 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends
I have gridview that i dont delcare any column by defalut. then in code behind i have get datatable dynamically. and i would like to bind these data to datatable. My datatable has first three column with value and after that column dont have the value and i want to set textboxes for all other columns.

My table is like below
AdmissionNumber  RollNumber       Name        subject1        subject2   subject3   


101                1001             Ram                 

102                1002             Bala     


103                1003             kumar 


In the above table I want to add textboxes for subject1 and subject2 and subject3 for all the student.I cannot predefined the column in gridview at aspx page, because no of subject is changable.
Posted
Comments

1 solution

Honestly, it's not good to answer again the question asked and answered so many times. Please see: http://www.codeproject.com/search.aspx?q=ASP.NET+bind+GridView+database&doctypeid=1%3b4%3b5[^].

—SA
 
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