QueryResultBase.GenerateHtmlOneRowForOneItem Method
The GenerateHtmlOneRowForOneItem method of the QueryResultBase class generates the HTML for one row for the specified DataRow in the search result set.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Protected Overridable Sub GenerateHtmlOneRowForOneItem ( _
objectDataRow As DataRow, _
sbRenderRowHtml As StringBuilder, _
rowID As Integer, _
strStyleClass As String, _
iIndexOfItemInDataSet As Integer, _
iIndexOfItemInGroup As Integer _
)
'Usage
Dim objectDataRow As DataRow
Dim sbRenderRowHtml As StringBuilder
Dim rowID As Integer
Dim strStyleClass As String
Dim iIndexOfItemInDataSet As Integer
Dim iIndexOfItemInGroup As Integer
Me.GenerateHtmlOneRowForOneItem(objectDataRow, _
sbRenderRowHtml, rowID, strStyleClass, _
iIndexOfItemInDataSet, iIndexOfItemInGroup)
protected virtual void GenerateHtmlOneRowForOneItem(
DataRow objectDataRow,
StringBuilder sbRenderRowHtml,
int rowID,
string strStyleClass,
int iIndexOfItemInDataSet,
int iIndexOfItemInGroup
)
Parameters
objectDataRow
Type: System.Data.DataRowDataRow that represents the item in the result set.
sbRenderRowHtml
Type: System.Text.StringBuilderStringBuilder that contains the HTML for the specified row.
rowID
Type: System.Int32Index of the row of data to generate. 0 indicates that the first HTML table row.
strStyleClass
Type: System.StringStyle from the stylesheet that applies to this row. This parameter is reserved for internal use.
iIndexOfItemInDataSet
Type: System.Int32Index of this item in the result set to render. 0 represents the first item.
iIndexOfItemInGroup
Type: System.Int32Index of this item in its group. This value is used to expand and collapse the result group in the browser.
Remarks
The GenerateHtmlOneRowForOneItem method generates different HTML if the DataRow contains information about a person. Otherwise is calls the GenerateHtmlOneRowForOneItem in the base class, QueryResultBase.
This method should not generate <TR> tags for the DataRow.