473,383 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 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 1043

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: ian justice | last post by:
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've...
4
by: Matt | last post by:
In ASP page, there is a "SELECT ALL" button, when user click it, it will select all checkboxes. I am not sure should I use client-side code to do that? the following is my approach but it didnt...
0
by: Michael | last post by:
I have a problem forcing files to download. If I select Save the document is saved with no problems. If I select "Open" the document is empty or I get a "File not found" error from the application...
10
by: serge | last post by:
Using "SELECT * " is a bad practice even when using a VIEW instead of a table? I have some stored procedures that are identical with the difference of one statement in the WHERE clause. If I...
13
by: Mark Kamoski | last post by:
Hi Everyone-- How can one to make a "select directory name" dialog? It would be great if one could use the FileOpenDialog but it does not seem to be straight-forward. Anyway, if you have...
1
by: Pavans | last post by:
Friends, I have web page with gridview... The gridview row selection works fine (with buttonfield for select) .. but as soon as I add <%@ OutputCache Duration="600" SqlDependency="TableName"...
5
by: Henning M | last post by:
Hi all, I having some problems with Access and selecting records between dates.. When I try this in access, it works fine!! "Select * from Bilag Where Mdates Between #1/1/2006# And...
1
by: jph | last post by:
Hello, anyone have found out how to select row in gridview in code? My problem is that on select command i populate another gridview based on first gridviews datakeyname's value and i highlight...
0
by: BTI-User | last post by:
I have one GridView that contains one field from my DB and a second GridView2 that contains the related info to GridView1 - in essence a parent/child setup. When I choose "Enable Selection" from...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.