473,626 Members | 3,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CheckBoxes & DataGrids ASP.net

Here is what I'm trying to do.
I need the user to make multiple row selections, either using a checkbox
column or selecting Multiple Rows from the DataGrid. Is there a way to do
this and if so can I find some sample code. I'm using VB. Any HELP would
be great.

Thanks

Randy
Nov 18 '05 #1
3 1333
Randy,

You can have a checkbox inside a TemplateColumn. It is easy.

Eliyahu

"Randy Rubin" <ra***@imarubin .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Here is what I'm trying to do.
I need the user to make multiple row selections, either using a checkbox
column or selecting Multiple Rows from the DataGrid. Is there a way to do
this and if so can I find some sample code. I'm using VB. Any HELP would
be great.

Thanks

Randy

Nov 18 '05 #2
That part I have, It's beng able to referance them with a value for the row
without displaying any text for the checkbox control.

"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:eB******** ******@TK2MSFTN GP10.phx.gbl...
Randy,

You can have a checkbox inside a TemplateColumn. It is easy.

Eliyahu

"Randy Rubin" <ra***@imarubin .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Here is what I'm trying to do.
I need the user to make multiple row selections, either using a checkbox
column or selecting Multiple Rows from the DataGrid. Is there a way to do this and if so can I find some sample code. I'm using VB. Any HELP would be great.

Thanks

Randy


Nov 18 '05 #3
Randy,

I have the exact sample code you need in the code library of my website,
www.aboutfortunate.com. Click on the code library link at the top right of
the page and then use the search box there to search for: checkbox in
datagrid and you'll have what you need.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Randy Rubin" <ra***@imarubin .com> wrote in message
news:YUxJc.7134 $%p4.340@okepre ad04...
That part I have, It's beng able to referance them with a value for the row without displaying any text for the checkbox control.

"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:eB******** ******@TK2MSFTN GP10.phx.gbl...
Randy,

You can have a checkbox inside a TemplateColumn. It is easy.

Eliyahu

"Randy Rubin" <ra***@imarubin .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Here is what I'm trying to do.
I need the user to make multiple row selections, either using a checkbox column or selecting Multiple Rows from the DataGrid. Is there a way
to
do this and if so can I find some sample code. I'm using VB. Any HELP would be great.

Thanks

Randy



Nov 18 '05 #4

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

Similar topics

0
3732
by: Frank Collins | last post by:
Can anyone point me to some good examples on the web of using values from dynamically created checkboxes on forms in ASP, particularly relating to INSERTING those values into a SQL or Access database? Basically, I have a form on which I have a series of statements, with 3 checkboxes for each statement - YES, NO, MAYBE. This series of statements is being dynamically populated from a query of a table in Access, called "tblQuestions". In...
8
2825
by: DylanM | last post by:
I have some checkboxes that are generated from the results of a database search. At the moment, the checkboxes are part of a table making up a form. Users are going through the form, clicking the boxes and saving to the database at the end with the 'Submit' command button. Is it possible to save the changes as the checkboxes are clicked? I suppose I'd need to write some dynamic ASP event handling at the same time as creating the checkboxes......
0
966
by: Fresh Air Rider | last post by:
I am having trouble getting checkboxes to work within Repeaters and DataGrids I have tried to access the value of each checkbox within a repeater which has been ticked as follows :- string sValues ="values"; foreach (RepeaterItem ri in rptrPublications.Items){ CheckBox cbx = (CheckBox)ri.FindControl("cbxPub"); if(cbx.Checked){
7
2409
by: DJ Dev | last post by:
Hi All, I have a complex problem. I have dropdownlists (usually 3-5) and the user selects some value from these and for each value selected, datagrids are shown to the user. I am creating the Datagrids dynamically using a loop depending on the number of Dropdownlists. The datagrids also have a checkbox template column. Now my problem is that how can I access the values selected by the user from these checkboxes. He checks one or more...
1
1161
by: David McCormick | last post by:
I have been scouring the message boards before I posted this question hoping to find an answer regarding datagrids and their behaviour after a sort command has been invoked. What I am trying to accomplish is this: I have a datagrid that has several columns directly bound from data table and on each row of the grid, the user has the ability to select that person displayed. When the user does NOT sort this grid their selections are...
4
1947
by: Jim Bancroft | last post by:
Hi everyone, I'm using a DataGrid with TemplateColumns. My DataGrid is located in a cell of an asp:Table. I did this so it's positioned correctly onscreen. One of the DataGrid's TemplateColumns is a checkbox. During the page's postback I loop over the DataGrid and read the checkbox values. My problem is, none of the checkboxes ever have their "Checked" attribute set-- it's as though anything I mark is ignored.
6
1943
by: nasirmajor | last post by:
dear all, i have a datagrid with checkboxes for selection of rows. and want to get unique id/ids(job_code) from the selected rows in array etc. can anyone help. <asp:datagrid id="dgResults" runat="server" DataKeyField="job_code"> <Columns> <asp:TemplateColumn> <ItemStyle Width="30px"></ItemStyle>
1
1804
by: Kasapo | last post by:
Hello, I am currently working on a website in which I have checkboxes to select attendance for brainstorming sessions. Currently, you can select multiple checkboxes, but the last one I want to be an option to not attend any sessions. The problem is that I want to deselect or otherwise 'invalidate' the checks on the previous checkboxes if the user checks the last one. Is there anyway to do this? I'm running an AMP server and would prefer not to...
2
1924
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a particular order (like ProductID, Name, Description, Quantity etc.) are displayed in one DataGrid where as the personal details of the buyer corresponding to this order (like Name, E-Mail, Shipping & Billing Address etc.) are displayed in another...
1
1105
by: Cdude | last post by:
I have a datagrid with checkboxes in it.I have a total column. Now whenever a checkbox is ticked i need to retrieve the total of that row.
0
8272
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8370
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,...
0
8514
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 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...
0
5579
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();...
0
4094
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...
0
4208
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2632
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
1
1817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1516
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.