Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

how to print only the checked rows from a datagridview in c#

$
0
0

I have a Datagridview it has a checkboxcolumn! when the data is loaded for standard all rows get checked! but i need to uncheck some of them and so send each column  value to a  3 vars and print them!

is it possible?

Exemple:

--------------------------------------------------------------
ColumnCheckBox     | Column1      | Column2        | Column3
--------------------------------------------------------------
checked            | 1251000014   | portraitx      | U$ 125.00
checked            | 1251000021   | notebooky      | U$ 899.96
unchecked          | 1265888512   | tabletx        | U$ 899.96
checked            | 1251444251   | iphoness       | U$ 566.26
unchecked          | 1255222142   | opticalreader  | U$ 99.99

I want to get the value of a first CHECKED ROW  and divite in 3 vars being one to each column  and print it, after i need to clean these 3 vars and add the value of the NEXT CHECKED ROW again and print it. till  it print all CHECKED ROWS!

thankx in advance!





Viewing all articles
Browse latest Browse all 2535

Trending Articles



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