views:

694

answers:

1

Can any one tell me the things happening in this section,,Why they are making item as invisible

protected void rgStateTax_PreRender( object sender, EventArgs e ) { if( rgStateTax.MasterTableView.IsItemInserted ) { foreach( GridItem item in rgStateTax.Items ) { item.Visible = false; } }

        if( rgStateTax.EditItems.Count > 0 )
        {
            foreach( GridDataItem item in rgStateTax.Items )
            {
                if( item != rgStateTax.EditItems[0] )
                {
                    item.Visible = false;
                }
            }
        }
    }

here rgStateTax is rad grid and,,PreRender is the event before the page is actually displayed on the screen rite?.

A: 

Regarding your question about the Prerender event, have a look at this http://emanish.googlepages.com/Asp.Net2.0Lifecycle.PNG

callisto