简体   繁体   中英

RadGrid1.Items is null

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM