WebGridRow.GetSelectLink Method
Returns an HTML element (a link) that users can use to select the row.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Function GetSelectLink ( _
text As String _
) As IHtmlString
'Usage
Dim instance As WebGridRow
Dim text As String
Dim returnValue As IHtmlString
returnValue = instance.GetSelectLink(text)
public IHtmlString GetSelectLink(
string text
)
public:
IHtmlString^ GetSelectLink(
String^ text
)
member GetSelectLink :
text:string -> IHtmlString
public function GetSelectLink(
text : String
) : IHtmlString
Parameters
- text
Type: System.String
The inner text of the link element. If text is empty or null reference (Nothing in Visual Basic), "Select" is used.
Return Value
Type: System.Web.IHtmlString
The link that users can click to select the row.
Remarks
When users click the link, the link posts a query string to the current web page that indicates the index of the selected row. You must add logic to the web page to process the request parameters and perform any associated action, such as setting the SelectedIndex property of the WebGrid instance, or adding formatting to the selected row to indicate that it has been selected.