Share via


SearchResults.GenerateHtmlForRowColumn Method

Generates the HTML that is displayed for a table cell in a table row for the specified DataRow in the search result set. This position in the rendered HTML results contains the path to the specified item.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Protected Overrides Sub GenerateHtmlForRowColumn ( _
    oneDataRow As DataRow, _
    strColumnHtml As StringBuilder, _
    iColumn As Integer _
)
'Usage
Dim oneDataRow As DataRow
Dim strColumnHtml As StringBuilder
Dim iColumn As Integer

Me.GenerateHtmlForRowColumn(oneDataRow, _
    strColumnHtml, iColumn)
protected override void GenerateHtmlForRowColumn(
    DataRow oneDataRow,
    StringBuilder strColumnHtml,
    int iColumn
)

Parameters

  • strColumnHtml
    Type: System.Text.StringBuilder

    StringBuilder that contains the HTML for the specified column. HTML is appended to this string.

  • iColumn
    Type: System.Int32

    Index of the column with HTML content to modify.

Remarks

The GenerateHtmlForRowColumn method overrides the GenerateHtmlForRowColumn method in the QueryResultBase class. It generates the HTML that is displayed for a table cell in a table row. This method is called when a DataRow is rendered for the first HTML table row. The table row can have several columns. Each column can be rendered by this method.

See Also

Reference

SearchResults Class

SearchResults Members

Microsoft.SharePoint.Portal.WebControls Namespace