DataGrid控件与GridView控件 5
请问GridView怎么写出一下DataGrid在VS2003DataGrid中privatevoidDataGrid1_ItemCommand(objectsource...
请问GridView怎么写出一下DataGrid
在VS2003 DataGrid中private void DataGrid1_ItemCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)这个事件中可以写if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
string a = e.Item.Cells[3].Text;
this.Response.Write(a);
}
vs2005中GridView protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)这个事件中怎么写上面DataGrid中的if
我每次2005写它只能显示第一行,完全不知道怎么写 没头绪 展开
在VS2003 DataGrid中private void DataGrid1_ItemCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)这个事件中可以写if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
string a = e.Item.Cells[3].Text;
this.Response.Write(a);
}
vs2005中GridView protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)这个事件中怎么写上面DataGrid中的if
我每次2005写它只能显示第一行,完全不知道怎么写 没头绪 展开
展开全部
参考
http://chenhui868.blog.163.com/blog/static/6377878200811273234430/
cs里面的
protected void gridFileList_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
}
}
http://chenhui868.blog.163.com/blog/static/6377878200811273234430/
cs里面的
protected void gridFileList_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询