I have a Gridview with some data added from database. So what I want is, I want to HIDE the button if the value in the amount column is 0 or NULL

I tried on RowDataBound like below

 if (e.Row.Cells[10].Text == "0")
        e.Row.Cells[15].Style["display"] = "none";

But it was telling that column is ""

So how can I hide the button if the value is 0

Related posts

Recent Viewed