Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21237

Data grid

$
0
0
I am using VB5 and have a data grid on my form.


The grid has 3 columns- name, id, test.
The number of rows in the grid changes according to the information in the form before it so it does not have a set amount of rows.

The test column either contains the value yes or no.

I need to check all values in the test column,
for the cells in this column that contain yes, add the name from this row to textboxs
and for the ones that contain no, dont do anything.




for example

name id test

John 123 no
Mary 234 yes
jack 234 yes
jill 909 no

the names mary and jack should be printed as the test column contains yes.


Does anyone have any suggestions on how to code this ?

Thanks.

Viewing all articles
Browse latest Browse all 21237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>