Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1965
hide an item in the parent row
posted

In whdg load on demand. If there are 10 rows 5 columns and i need to hide the 1st row's 1st column, how do i achieve this?

Example if all the rows' 1st column contains an edit image button and i want to make sure that the first row is not editable, how can i do this?

Parents
No Data
Reply
  • 1965
    Suggested Answer
    posted

    I think i got it. In InitializeRow event add:

     

                        e.Row.Items.FindItemByKey("MyColumn").Column.Hidden = true;

    var img = ((ImageButton)e.Row.Items.FindItemByKey("MyColumn").FindControl("MyItem"));

                        img.Visible =false;

Children