我想获取DataGrid超链接列里所选中的值,应该用什么方法啊

解决方案 »

  1.   

    可以在超链接那里写js方法获取比较简单的处理办法,不使用超链接列,在后台response.Redirect...
      

  2.   

    DataGrid_RowCommand事件里操作
    LinkButton lb = DataGrid.Rows[int.Parse(e.CommandArgument)].FindControl("LinkButton 1") as LinkButton ;
    string str = lb.Text;
      

  3.   

    (DataGrid1.Items[行索引].Cells[列索引].Controls[0] as HyperLink).Text
      

  4.   


    as HyperLink这是什么意思啊,我放在了DataGrid是ItemCommand事件里对吗
      

  5.   

    这个是获取超链接列所选项的方法吗,为什么值是NuLL啊?