开发者

how to get this checkbox index

开发者 https://www.devze.com 2023-01-05 09:42 出处:网络
how to get the position /index of checkbox placed inside gridview GridViewRow headerrow=GrdDynamicControls.HeaderRow;

how to get the position /index of checkbox placed inside gridview

                GridViewRow headerrow=GrdDynamicControls.HeaderRow;
                TableCell tb = headerrow.Cells[i];
                string strheaderrow = tb.Text;

                if (strheaderrow.Contains( strColumnName))
                {
                 bool val = ((CheckBox)GrdDynamicControls.Rows[i].FindControl("chkStatus")).Checked;
                }

how to get this checkbox index开发者_开发问答?/?

any help pls..


You can use Event Args e

e.Item.ItemIndex

it will return an integer

Hope this will help

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号