473,473 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Select All Button

I want to select all instead of clear all..thanks

Private Sub btnClearChoice_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnClearChoice.Click
Try
Dim row As DataRow
For Each row In Me.dtRptList.Rows
row("Choose") = False
Me.dgFileList.DataSource = Nothing
'me.Refresh
Next
Catch ex As Exception
MsgBox("btnClearChoice_Click: " & vbCrLf & vbCrLf &
ex.ToString)
End Try
End Sub

Mar 15 '07 #1
2 1260
Have you tried row("Choose") = True ? My understanding is that this column
is supposed to contains wether or not a row is chosen.

"schaapiee" <dr***********@yahoo.coma écrit dans le message de news:
11**********************@l77g2000hsb.googlegroups. com...
>I want to select all instead of clear all..thanks

Private Sub btnClearChoice_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnClearChoice.Click
Try
Dim row As DataRow
For Each row In Me.dtRptList.Rows
row("Choose") = False
Me.dgFileList.DataSource = Nothing
'me.Refresh
Next
Catch ex As Exception
MsgBox("btnClearChoice_Click: " & vbCrLf & vbCrLf &
ex.ToString)
End Try
End Sub

Mar 15 '07 #2
I could have swore I tried that, oh well, works now! Thanks

Mar 15 '07 #3

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

Similar topics

1
by: JT | last post by:
I have an input form for which I've created a "matrix" for user input. Basically, the user chooses a radio button and then through javascript, a select box is displayed to define a value for that...
1
by: Raghuram Banda | last post by:
Hi All, Can any one please look into the following code and tell me where I went wrong <html> <head> <script language="JavaScript"> function transferItem(srcId, destId) { var destObj =...
1
by: fig000 | last post by:
Hi, I want to use a select object in asp and have the user pick something from this select and have javascript open a window fired by an event. Once the new window is open it displays another...
4
by: Bart van Deenen | last post by:
Hi all I have a script where I dynamically create multiple inputs and selects from a script. The inputs and selects must have an associated onchange handler. I have the script working fine on...
3
by: Rick | last post by:
Is there a way to select all the elements of a list via a JavaScript? This is a way it is <form action="" method="post" enctype="application/x-www-form-urlencoded"> <select name="select"...
1
by: Joe Attardi | last post by:
Hi all, On a form on one of my pages I have two <select> elements, and each one is paired up with a radio button. The idea is to choose an item from one list or the other and select the radio...
6
by: Terry | last post by:
Good morning! How do I determine which SELECT button was clicked in a GridView? The multiple SELECT buttons will be used for an application approval process. Thank you in advance for your...
5
by: john | last post by:
In this single-user app I have a form with members. In the related table I have a field 'Select' with which the user can select a record. I have two buttons on the form (All and None) that select...
4
by: Rob | last post by:
Hi, Is there anything wrong with this code or does new Option just not work very well. I have a select box on my form: <select name="FirstLine" size="5" style="width:122px;"> </select> and I...
3
by: matwilko | last post by:
hi, i am trying to create a simple version of itunes...and i am using iframes to do this. I have already set up the iframes using dreamweaver and used a drop-down menu to select the genre. When...
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
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
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...
0
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.