When Click Button it Was Hide In gridview RRS feed

  • Question

  • User1827380138 posted

    In Grid view Data retrieve From database and add Button.

    When click button Show message and that button Was Hide;

    Next time Grid view Load That Hide Button Was Not Show,  One time button Was Hide Next time That Button Not Show In Grid view 

    how to Do it in ASP.Net C#

    Thank You...

    Thursday, January 23, 2020 6:55 AM

All replies

  • User-1716253493 posted

    Add showcolumn (bit) in the table, bind/Eval the field to button visible property

    Visible='<%# Eval("show") %>'

    Then when click/row command update value to 0/false while hiding the button

    Thursday, January 23, 2020 7:11 AM