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

How to get the value of checkbox in the DataGridView?

$
0
0

In a DataGridView,There is a column,It's type is "DataGridViewCheckBoxColumn",How can I get the status of this checkbox?

 

ArrayList aList = new ArrayList();

foreach (DataGridViewRow row in dgv_Leaguer_Info.Rows)
            {
                bool bChecked = ???;
                if ( bChecked )
                {
                    aList.Add(row.Cells[0].Value.ToString());
                }
            }

 

TKS!


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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