C# GRIDVIEW转换错误(编译器错误消息: CS0266: 无法将类型“uint”隐式转换为“int”。存在一个……)
protectedvoidGridView1_RowCommand(objectsender,GridViewCommandEventArgse){intindexs=C...
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
int indexs = Convert.ToUInt32(e.CommandArgument.ToString().Trim());
TextBox2.Text = Convert.ToString(GridView1.Rows[indexs].Cells[0].Text);
}
源错误:
int indexs = Convert.ToUInt32(e.CommandArgument.ToString().Trim()); 展开
{
int indexs = Convert.ToUInt32(e.CommandArgument.ToString().Trim());
TextBox2.Text = Convert.ToString(GridView1.Rows[indexs].Cells[0].Text);
}
源错误:
int indexs = Convert.ToUInt32(e.CommandArgument.ToString().Trim()); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询