Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Strange Problem: Templated checkbox column

Reply
Thread Tools

Strange Problem: Templated checkbox column

 
 
Dev
Guest
Posts: n/a
 
      05-05-2007
Hi,

I've coded a templated column that will add a column of asp:Checkboxes
including an asp:checkbox on the column header, to a gridview. The checkbox
on the column header has Auto-postingback enabled and I've added an event
hanlder to handle the CheckChanged event. I've put some code to the
CheckChanged event hanlder. The templated column column is very simple
doesnt do anything other than mentioned above.

If I add this templated column on fly to a gridview which is also built
dynamically, then CheckChanged event handlder fires when I tick/untick the
column header checkbox, so no problem.

But if I add this templated column on fly to a gridview added to the page in
the designmode, then CheckChanged event handler fires only when I tick the
checkbox on the column header. Event hanlder is not called when I untick the
checkbox.

Anybody know reason to this behavior? How to change this behavior?

Dev


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
templated function as parameter of another templated function Amadeus W. M. C++ 2 07-04-2006 09:59 PM
ASP.NET Templated User Controls - Limit child controls allowable within a templated control JohnyStyles@gmail.com ASP .Net 0 05-29-2006 06:00 PM
Subtypes of templated types (in templated functions) Marijn C++ 5 02-13-2004 09:50 AM
implementing a templated struct within a templated struct RA Scheltema C++ 3 01-06-2004 11:25 AM
Templated column cannot access datasource column ASP .Net 2 11-10-2003 03:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57