i had a dataset that return the following data CategoryDI, CategoryName, CateoryPicture im displaying these data using gridview however i want to display only CategoryName hide categoryid, and CategoryPicture im uinsg the following code but it not working please help me thank you
GridView1.DataSource = getDataSet.Tables(0)
GridView1.DataBind()
GridView1.Columns(0).Visible = False
GridView1.Columns(1).Visible = true
GridView1.Columns(2).Visible = False
protected void gvDocuments_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[1].Visible = false;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With