This is a migrated thread and some comments may be shown as answers.

GridTemplateColumn with a checkbox looses value after postback

1 Answer 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 17 Nov 2008, 10:02 PM
Please see attached Project. I have gone through the forum and found no answer to this issue. there are similar threads but not like this issue. 

The Grid has two checkbox templated columns. theses checkbox only check one way. there is no way to keep its toggled state. 
steps to re-create: 
Start sample project. 
Click the header checkbox of the first column, see the values change. however after postback processing the checkbox looses its value as a result one can only select the checkbox in one way. 

Thanks, Don Almeida   

Hey--> there is no way to upload a project, what happened ot this feature? 


 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Nov 2008, 03:58 AM
Hi Don,

Go through the following help article which explains how to maintain CheckBox state in a GridTemplateColumn.
Persisting CheckBox control state in GridTemplateColumn on rebind

Thanks
Shinu.
Tags
Grid
Asked by
Don
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or