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
985
How to Hide Column of Specific Row
posted

Hi,

I'm trying to hide a  Column of Specific Row  , not for other Row.

Thanks,

ABhishek

Parents
  • 13438
    posted

    Hello Abhishek,

    As far as I understand your goals  when a row is selected according to some conditions a column have to be hidden or shown. It is easy to be done on the event RowSelectionChanged on the client.  Here is a template of the javascript event:

    function WebDataGrid1_Selection_RowSelectionChanged(sender, eventArgs)

            {

                if (sender._behaviors._selection.get_selectedRows().getItem(0)._index % 2 == 0)

                {

                    sender._columns.get_column(2).set_hidden(true);

                }

                else

                {

                    sender._columns.get_column(2).set_hidden(false);

                }

            }

     

Reply Children