0
任何人都可以幫我看看爲什麼這個代碼禁用所有的行,即使條件只遇到一次?RadGrid行禁用問題?
private void RollListGrid_RowLoaded(object sender, RowLoadedEventArgs e)
{
if (masterList[0].Rolls[0].IsActive = false)
e.Row.IsEnabled = false;
foreach (var roll in masterList.Where(s => s.StudentId == StudentID))
{
foreach (var v in roll.MasterEnrolmentStatusList.Values)
{
if (v != null)
EnrolmentStatus.Add(v.Value.ToString());
}
}
foreach (var status in EnrolmentStatus)
{
if (status == "Confirmed")
e.Row.IsEnabled = false;
}
}