Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have web application in which SQL Procedure gives results as follows:


//////////// Prof. A Prof. B Prof. C Prof D.
Student A true true false true

Student B false true false true

Student C true false false false


I want to bind this data to gridview with checkbox in its columns..
Columns and rows getting from this query are variable according to condition..
Also user can check/uncheck checkbox in gridview and on save button I have to save that data to database..

Plz Help... URGENT
Posted
Comments
JoCodes 23-Mar-14 13:43pm    
Does the number of columns change dynamically too?
Mayuri Gandhi 23-Mar-14 14:01pm    
Ya... I have written a function in sql server. In that function I have composed a query. Function returns the query and after executing this query I get that result..
So number of columns are also variable..and this is the main problem..

 
Share this answer
 
Comments
Mayuri Gandhi 23-Mar-14 14:05pm    
Its of no use, because in my case, no. of columns are also variable..
Refer and start with

how-to-add-dynamic-n-checkbox-columns-to-gridview-asp-net[^]

Inserting part

show-a-checkbox-filled-inside-a-grid-view-in-asp-net and update[^]

Can try first and revert so that it would be easy to help you.
 
Share this answer
 
Comments
Mayuri Gandhi 24-Mar-14 6:34am    
thank u very much..
I am trying this solution, meanwhile help me in:
http://www.codeproject.com/Questions/748633/get-text-in-textbox-on-cut-or-paste-action-javascr

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