Hi, i have a radgrid with allowpaging.
I need to make a verification in all items in the grid before saving in the database, but the code just verify only ten itens that displayed in the first page. How can i make a solution to resolve this problem ?
Actually, my code do this:
Sorry if have some words wrong, but i don´t speak english very well.
Thanks!
I need to make a verification in all items in the grid before saving in the database, but the code just verify only ten itens that displayed in the first page. How can i make a solution to resolve this problem ?
Actually, my code do this:
foreach
(GridDataItem item
in
rgdRebanho.Items)
{
CheckBox ckbItem = (CheckBox)((item).FindControl(
"ckbItem"
));
if
(ckbItem.Checked ==
true
&& ckbItem.Enabled ==
true
)
{
RadDateInput dt_ocorrencia = (RadDateInput)((item).FindControl(
"dt_ocorrencia"
));
if
(dt_ocorrencia.SelectedDate ==
null
)
{
erro =
true
;
}
}
}
Sorry if have some words wrong, but i don´t speak english very well.
Thanks!