Ask a Question related to ASP.NET Data Grid Control, Design and Development.
- Nofear #1
A solution to finding controls in datagrid footer... Hi all,
I saw a lots of developers posting question on finding controls in
datagrid footer...
I have experimenting differents solution and find one that needn't
ItemDataBound ou ItemCommand :
Table tbl = (Table)dgWorkgroup.Controls[0];
foreach(TableRow row in tbl.Rows)
{
RequiredFieldValidator val =
(RequiredFieldValidator)row.FindControl("requireVa lidatorFooterName");
if(val != null)
{
val.Visible = true;
}
}
Casting dgWorkgroup.Controls[0] to Table allow you to scan in the Rows
collection of the table (header and footer included) so on a
particular row you can find your control(s)....
Hope helping you !
Nofear.
Nofear Guest
-
How Access Controls In A DataGrid Footer
OK - I am prepared for everyone who will tell me this is a hack and bad idea; however, this is the only way I could find to solve this problem, and... -
Method to Access Controls In A DataGrid Footer
Hi, I noticed some ppls are struggling on access Controls In A DataGrid Footer this is the way i done and works pretty well . Take a look... -
Problem finding datagrid in Page.controls collection
You can find datagrid in page by refering the form. Gatagrid is a child control of Form. Here is the code ----------------- Dim ctl As New... -
Finding a solution for make routing registry
Hello I'm ver new in Perl. I want to get the best solution, help me please. I'm doing a project which use Perl. My work is to create a daemon... -
Plz help finding replication solution!
Is it possible to replicate data from table1 INTO a pre-existing table2? I read up a bit on replication and it looks like a replicated table has to... -
Re: A solution to finding controls in datagrid footer... Thanks a bunch. It works great; clever too. Indeed, I had the same
problem--disabling the validation controls in the footer.
Isaac Citrom.
On 11 Aug 2003 07:59:50 -0700, [email][email protected][/email] (Nofear) wrote:
>Hi all,
>
>I saw a lots of developers posting question on finding controls in
>datagrid footer...
>I have experimenting differents solution and find one that needn't
>ItemDataBound ou ItemCommand :
>
> Table tbl = (Table)dgWorkgroup.Controls[0];
>
> foreach(TableRow row in tbl.Rows)
> {
> RequiredFieldValidator val =
>(RequiredFieldValidator)row.FindControl("requireV alidatorFooterName");
> if(val != null)
> {
> val.Visible = true;
> }
> }
>
>Casting dgWorkgroup.Controls[0] to Table allow you to scan in the Rows
>collection of the table (header and footer included) so on a
>particular row you can find your control(s)....
>
>
>Hope helping you !
>
>Nofear.[email protected] Guest




