471,082 Members | 824 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,082 software developers and data experts.

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"
AutoGenerateColumns="false">
<Columns>
<asp:CheckBoxField HeaderText="Enabled" DataField="Enabled"
SortExpression="Enabled" />
</Columns>
</asp:GridView>
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
True.

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

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.