hello to all,
sorry for my english, I'm italian.
I have 30 datagrids, how can I call them in a cicle using their ID?
(to not write so much code)
Thanks,
Pileggi
Pileggi:thumb:
Printable View
hello to all,
sorry for my english, I'm italian.
I have 30 datagrids, how can I call them in a cicle using their ID?
(to not write so much code)
Thanks,
Pileggi
Pileggi:thumb:
PHP Code:foreach(Control ctrl in this.Controls)
{
if (ctrl.GetType() = typeof(DataGrid))
{
DataGrid dg = (DataGrid)ctrl;
//....do whatever you want with your grid here
}
}