通过GridViewCheckBoxColumn(Telerik组件)访问所有选中的RadGridView的行

问题描述 投票:0回答:1

我想通过GridViewCheckBoxColumn访问RadGridView(Telerik组件)中所有选中的行。注意:用户在运行时选择复选框...enter image description here

c# checkbox gridview telerik radgridview
1个回答
0
投票

您可以这样访问复选框列:

        foreach (GridViewRowInfo item in radGridView1.Rows.ToList())
        {
            if(item.Cells[0].Value.Equals(true))
            {
                //dowhat you want
            }
        }

在“ Cell [0]”中,零索引是复选框列的索引

© www.soinside.com 2019 - 2024. All rights reserved.