摘要:
gridview 选中行
/*功能:当选中某行时,获得应行上的“用户名称”和“工号”的两个字段的值*/
/*关键就是这里的实现喽*/
protected void GridView_user_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "ib_sel")
{
string name = e.CommandArgument.ToString();
Control cmdSource = e.CommandSource as Control;
GridView gridv = sender as GridView;
GridViewRow row = cmdSource.NamingContainer as GridViewRow;
int rowIndex = row.Row
阅读全文