468,537 Members | 1,844 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,537 developers. It's quick & easy.

Gridview "select button" causes weird problems

I have a very weird problem with the GridView control.

Here is the code:
<asp:GridView runat="server" ID="gv" AutoGenerateEditButton="true"
AutoGenerateSelectButton="true" AllowPaging="true"
<asp:CheckBoxField HeaderText="Enabled" DataField="Enabled"
SortExpression="Enabled" />
Looks simple enough, huh? When I go into edit mode I check the
checkbox (which initially is unchecked) and then hit the "Update"
link. When I try to read the checkbox property "Checked", it returns
the value False.
Isn't this pretty weird behaviour?

When I set AutoGenerateSelectButton to "false", then everything works
as it should be. I just don't understand why it fails when I set it to

Can anyone enlighten me?
Jun 27 '08 #1
0 931

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by ian justice | last post: by
reply views Thread by BTI-User | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.