home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
vb_code1
/
multigrd
/
multigrd.frm
(
.txt
)
next >
Wrap
Visual Basic Form
|
1993-08-12
|
3KB
|
79 lines
MultiGrd
Comments To: 71201,2304
Form15
List1
ShowBtn
EndBtn
Grid1
Label1
Label1
@ Form_Loadq
added
ShowBtn|
Enabled
EndBtn_Click
GoBtn_Click
grid1
Budweiser
ColWidth
Width
Text1
Visible
CRLF)
Lable1
Caption
Label1
Label
Height
Grid1_Click
ShowBtn_Click
list1
adjascent
selected
press
proof
method
works
Beers
prior
usage
ListCount
This demo program illustrates how one can selectj
non-adjascent rows of a grid for further processing.i
Running the program will populate the Grid with some data.
You can then click on any column of EACH Row that you want
to select. When a row is selected, a ">" symbol appears in t
the first column. To de-select a row, click on it again,
and the ">" symbol disappears to indicate that the row is c
de-selected.s
After you have selected all the rows that you want, h
press the "SHOW" Button. The Items in Column 1 of the
selected rows only will be added to the list box, o
as proof that the method works.
Pressing the "END" Button ends the Program.
Questions and Comments can be addressed to:
EndBtn_Click
Form_Load
Sample Data for Grid(
Michelob
Budweiser
Corona Extra
Heineken
Fosters
Miller
HomeBrew
Populate the grid
Adjust grid for display
Display Instructionsl
Click on one or more rows to select
Click again to de-select
Press SHOW Button when done selecting
Grid1_Click
ShowBtn_Click
Clear the List from possible r
prior usage
Add Array item to list box if corresponding
row in grid was selectedo
If list is empty, display appropriate message
No Rows of Grid Were Selected!!