I have a GridView control whose first two columns have buttons. When the row is being created, I want to check if the sixth column text is “Locked” or not. If yes then the button in the first cell should not be visible.
The first two columns of the GridView looks like this:

You need to do something as below to hinde the button control form the cell…