开发者

RadGrid1.Items is null

开发者 https://www.devze.com 2023-03-21 23:48 出处:网络
enter code here protected void btnshortlist_Click(object sender, EventArgs e) { foreach (GridDataItem item in rg_results.Items)
enter code here protected void btnshortlist_Click(object sender, EventArgs e)
{
    foreach (GridDataItem item in rg_results.Items)
    {
        CheckBox chkselected = (CheckBox)item.开发者_开发技巧FindControl("chkselected");
        if (chkselected.Checked == true)
        {
            Applicant_Status(item.Cells[3].Text.Trim(), 1, 0);
        }
    }
 }

rg_results.Items is null and cannot enter in foreach loops Note:I'm not using Rad Grid Need Data Source Event because it is conflict with my javascripts please help me?


use rg_results.MasterTableView.Items instead of rg_results.Items

0

精彩评论

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

关注公众号