Hello,
I have a CheckBoxField in my GridView but it is disabled.
I need to make it enable so that the user can set that data field to
true or false.
Then on a click of a button I would need to get the updated data.
How can I do this?
Thanks,
Miguel 2 10689
On 8 mar, 20:16, "shapper" <mdmo...@gmail. comwrote:
Hello,
I have a CheckBoxField in my GridView but it is disabled.
I need to make it enable so that the user can set that data field to
true or false.
Then on a click of a button I would need to get the updated data.
How can I do this?
Thanks,
Miguel
Can you post some of your existing code? Also, do you always want the
checkbox to be enabled, or only in edit mode?
On Mar 9, 1:54 pm, "Greg9Strat " <greg9st...@gma il.comwrote:
On 8 mar, 20:16, "shapper" <mdmo...@gmail. comwrote:
Hello,
I have a CheckBoxField in my GridView but it is disabled.
I need to make it enable so that the user can set that data field to
true or false.
Then on a click of a button I would need to get the updated data.
How can I do this?
Thanks,
Miguel
Can you post some of your existing code? Also, do you always want the
checkbox to be enabled, or only in edit mode?
Hi,
I solved this one by using a Template Field with a Check Box.
It seems the CheckBoxField is only active if you have the
UpdateCommand and everything else active with an SQL DataSource which
is not my case.
Thanks,
Miguel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ck388 |
last post by:
For some reason when I enable the callback feature of the gridview I
still get a page refresh, that is it seems like there is a postback
that occurs, not a callback which is just supposed to update not the
whole page, but a portion of the page.
Strangely enough the URL below
http://beta.asp.net/QUICKSTARTV20/aspnet/doc/ctrlref/data/gridview.aspx
(VB GridView Paging and Sorting Callbacks example)
|
by: ferherra |
last post by:
Hi,
Hope someone can help...
I databind my gridview (asp.net 2.0) like this:
GridView1.DataSource = Membership.GetAllUsers();
(MembershipUserCollection)
GridView1.DataBind();
In the GridView1_RowDataBound eventhandler
I'm getting the user role for each user (each user will only have and
|
by: Chris Davoli |
last post by:
How do you enable a check box in the GridView. I selected Checkbox Field in
the Columns of the GridView, and the check box shows up in the Grid view, but
it is disabled. How do I enable it so I can check/uncheck it. Also, what
event do I use to check it for a value? Any articles out there?
--
Chris Davoli
|
by: Chris Davoli |
last post by:
I've got two questions on how to do things in the new GridView. I'm used to
the DataGrid in ASP 1.1, so I need the equavalent in ASP 2.0 Gridview.
1.) What is the equavalent for Item Command event in GridView? I thought it
would be RowCommand, but I can't get that event to fire with a check box
field that I drag/drop in a template column in the ItemTemplate.
2.) For a Templated column, like a check box above, where do I tell it the...
|
by: Greg Lyles |
last post by:
Hi all,
I'm trying to develop an ASP.NET 2.0 website and am running into some
real problems with what I thought would be a relatively simple thing
to do.
In a nutshell, I'm stuck on trying to display data in a "GridView"
which is tied to an "ObjectDataSource".
In turn, this ObjectDatasource gets it's data from a strongly-typed
business object within my code.
| |
by: Tomasz Jastrzebski |
last post by:
Hello Everyone,
I have a GridView control bound to a plain DataTable object.
AutoGenerateEditButton is set to true, Edit button gets displayed, and
RowEditing event fires as expected.
|
by: gerry |
last post by:
The PagerSettings.Visible property is not being handled properly by the
GridView control.
The value assigned to this property is not applied until after a postback.
Simplest test :
.aspx containing a single gridview - enable paging and give enough data
to page.
add checkbox with auto postback enable
add button with auto postback enable
in the GridView1_PreRender method add the following :
GridView1.HeaderRow.Enabled =
|
by: marksommerville |
last post by:
I have a few questions regarding accessing a gridview control from
Javascript which I would really appreciate some help with.
1. The gridview contains a column of checkboxes as a template field. I
have onclick Javascript on the checkbox but can't figure out how to
determine the row number of the checkbox that was clicked.
2. How do I access a control within the gridview's pagertemplate? The
pagertemplate contains a 1 row table with a...
|
by: Garudzo |
last post by:
Hi Gurus
I have created a small application to load data into a gridview from a dataset. Now I want to update the data set but when I try to use the keys() and the newvalues() arrays they all do not contain any data. I am biding the gridview in code. How do I enable my gridview to populate the keys() and the newvalues collections in a gridview that i set properties programmatically. I am using vb.net
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |