Click here to Skip to main content
15,920,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i make the content of a cell visible false on the click of a button which is in the first cell of the gridview for each selected row..?
Posted

You can hide that column

grdView.Columns[0].Visible = false;

This will hide the first column
 
Share this answer
 
C#
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)

GridView gv = (GridView)sender;

int index = gv.SelectedIndex;

GridViewRow gvw = gv.Rows[index];

string str0 = (string)gvw.Cells[0].Text;
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900