C# 如何获取gridview选定列
在asp.net C#vs05.window平台上工作时,我可以在标记属性上保存值。如何在web上使用此属性?通过使用标记属性,我可以轻松获得所选行。代码sniptC# 如何获取gridview选定列,c#,asp.net,C#,Asp.net,在asp.net C#vs05.window平台上工作时,我可以在标记属性上保存值。如何在web上使用此属性?通过使用标记属性,我可以轻松获得所选行。代码snipt class name object = (className)listviewName.SelectedItems[0].Tag; 我想在对象中获取我的gridview选定行值,如上图所示。如何获取 // Get the selected row from the GridView control.//
class name object = (className)listviewName.SelectedItems[0].Tag;
我想在对象中获取我的gridview选定行值,如上图所示。如何获取
// Get the selected row from the GridView control.//
GridViewRow selectRow = AuthorsGridView.SelectedRow
//If the first column is, for example, LastName ...//
String lastName = selectRow.Cells[1].Text;
现在还不清楚您的意思是否是asp.net,这是一个错误吗?