开发者

how to get this checkbox index

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜