单击按钮时必须更改gridview中的值 [英] value in the gridview has to be changed onclick of a button

查看:89
本文介绍了单击按钮时必须更改gridview中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有4行5列..我需要在单击按钮时将第5列的值更改为另一个值.按钮应该在gridview之外.
并且第5列中的值是一个链接.单击按钮时,它应该更改为另一个链接.

I have 4 rows and 5 columns.. i need to change the value of 5th column into another value onclick of a button. button should be outside the gridview.
and the value in 5th column is a link.. on click of a button it should change to another link.

推荐答案

int row = 1;
DataGridView mDgv;
.
.
mDgv.Rows[row].Cells["ColumnName"].Value = RowColVal;


这篇关于单击按钮时必须更改gridview中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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