флажок в подробном виде сетки отображается
Код: Выделить всё
в индексе страницы
Код: Выделить всё
protected void wdtgMovimenti_PageIndexChanged(object sender, EventArgs e)
{
List ListValueSaved = .... List of Selected Key checkbox;
int startNum = (masterGrid.PageIndex ) * masterGrid.SettingsPager.PageSize;
int endNum = ((masterGrid.PageIndex ) * masterGrid.SettingsPager.PageSize) + masterGrid.SettingsPager.PageSize ;
for (int i = startNum; i x.Contains(key)).Count()>0)
{
int detailRowIndex = detailGrid.FindVisibleIndexByKeyValue(rowKey1);
if (detailRowIndex >= 0)
{
detailGrid.Selection.SelectRow(detailRowIndex); // Programmatically select the checkbox
}
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... n-gridview
Мобильная версия