网格视图中的选择行中的错误 [英] error in select row in gridview

查看:59
本文介绍了网格视图中的选择行中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 当我想在网格视图中选择某些参数的行返回给我时,我收到此错误:

错误1无法将类型``System.Web.UI.WebControls.TableCell''隐式转换为``string''C:\ Users \ venus \ Documents \ Visual Studio 2005 \ WebSites \ income \ Default.aspx.cs 19 26 C :\ ... \收入\

为什么?

解决方案

我的代码是:

Textbox1.Text = GridView2.Rows [GridView2.SelectedIndex] .Cells [1];

但我收到错误????????????


hi when I want select row in grid view for some parameters return to me ,I recive this error:

Error 1 Cannot implicitly convert type ''System.Web.UI.WebControls.TableCell'' to ''string'' C:\Users\venus\Documents\Visual Studio 2005\WebSites\income\Default.aspx.cs 19 26 C:\...\income\

WHY? Can any body help to me?

解决方案

my code is:

Textbox1.Text = GridView2.Rows[GridView2.SelectedIndex].Cells[1];

but i recieve error????????????


这篇关于网格视图中的选择行中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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