我如何使单元格的内容可见为假 [英] How do i make the content of a cell visible false

查看:150
本文介绍了我如何使单元格的内容可见为假的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何单击每个选定行的gridview的第一个单元格中的按钮,使单元格的内容可见为假..?

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..?

推荐答案

您可以隐藏该列

You can hide that column

grdView.Columns[0].Visible = false;


这将隐藏第一列


This will hide the first column


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;


这篇关于我如何使单元格的内容可见为假的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆