2011-07-22 47 views
0
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爲空,可以在不的foreach循環進入注 :我沒有使用拉德網格需要數據源的事件,因爲它與我的JavaScript的衝突 幫我嗎?RadGrid1.Items是空

+0

你有什麼問題嗎? – NaveenBhat

回答

1

使用rg_results.MasterTableView.Items,而不是rg_results.Items