473,395 Members | 1,554 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,395 software developers and data experts.

getting chkbox value from datagrid

Hello,

I have a datagrid (this is a windows app) with a checkbox column
(thanks again for the help on that!)
I want the user to be able to select several records from the datagrid
(by checking the checkboxes) and then have the datagrid display just
those records.
How do I capture the which checkboxes are checked??

TIA,

Wink
Nov 21 '05 #1
3 1024
This is for ASP.net, but the logic/syntax couldn't be far off:
http://aspnet101.com/aspnet101/aspne...de=cblselected

David Wier
http://ASPNet101.com
http://aspexpress.com
"wink martindale" <wi**@martindale.com> wrote in message
news:9c********************************@4ax.com...
Hello,

I have a datagrid (this is a windows app) with a checkbox column
(thanks again for the help on that!)
I want the user to be able to select several records from the datagrid
(by checking the checkboxes) and then have the datagrid display just
those records.
How do I capture the which checkboxes are checked??

TIA,

Wink

Nov 21 '05 #2
Sorry about that - - I gave you the wrong link - it's:
http://aspnet101.com/aspnet101/aspne...de=chkDataGrid

David Wier
http://ASPNet101.com
http://aspexpress.com

"wink martindale" <wi**@martindale.com> wrote in message
news:9c********************************@4ax.com...
Hello,

I have a datagrid (this is a windows app) with a checkbox column
(thanks again for the help on that!)
I want the user to be able to select several records from the datagrid
(by checking the checkboxes) and then have the datagrid display just
those records.
How do I capture the which checkboxes are checked??

TIA,

Wink

Nov 21 '05 #3
Wink,

I see that I missed this one.

It should be real very easy.

A datagrid has forever a datasource which is normally a datatable.

If you than set or reset the rowfilter in the defaultview of the table. Than
it will be showed as you wish.

Don't forget to do before setting the rowfilter an endcurrentedit.

If this is not clear, than reply and I make a simple sample *tomorrow* and
put it on our website.

I hope this helps,

Cor
Nov 21 '05 #4

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

Similar topics

2
by: DD | last post by:
I have a subform on a form In the subform i have a chkBox= and a txtbox= The idea is you Chk and the price $40.00 is automaticly entered into The chkBox has code Private Sub...
1
by: Amadelle | last post by:
Hi all and thanks in advance for your help, I have a problem with capturing the changed value of a text box in a datagrid. The datagrid is populated based on a dataset and I am using template...
5
by: Jason | last post by:
I've been trying to figure out a good way to do this but haven't had much luck, any input would be greatly appreciated. Basically, after a datagrid is sorted, how can I get the primary key value...
0
by: Rudy | last post by:
Hello all, I have a datagrid with a checkbox as a template. I connected my two chekboxes in the template to my my datasource in the propeties menu. But I get this error flagged at line 33....
2
by: RbanBph | last post by:
Hello, I have used datagrid in my web application. I want to set datasource to this datagrid. I want to display check boxes in one of its column. How can i add checkboxes in my datagrid using...
0
by: John | last post by:
Hi all, i've added a checkbox column to my datagrid using template columns, and i added a checkbox to the header for check all and uncheck all functionality. the purpose of this is to allow the...
0
by: alan | last post by:
Hello, I have got a datagrid with first column as a checkbox. I'm trying to retrieve values from rows with checkbox checked. For one column I'm doing something like: <asp:datagrid id="Grid1"...
4
by: hkarthik | last post by:
hi all, I added a checkbox inside my datagrid. This checkbox is generated automatically depending on the data's inside my datagrid. So the problem that occurs now is all the checkboxes...
0
by: rajesh0303 | last post by:
Iam get null values in the datakeynames AlertID,ItemID while executing the Insert Command....I am Inserting using Externel button Event.Here is the code of Gridiew ,Its datasource and the button...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
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...
0
agi2029
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,...

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.