Initializes a new instance of the
HeaderDropDownList class with the specified items.
The following code example shows how to create a drop-down list for the column header cell to allow the user to sort or filter. This code example is part of a larger example provided for the
DropDownList property.
void setFirstColumnDropDownListButton_Click(object sender, EventArgs e)
{
// Get first column header cell.
ColumnHeaderCell columnHeaderCell = this.gcMultiRow1.ColumnHeaders[0][0] as ColumnHeaderCell;
// Create a drop down list with some default down down items.
columnHeaderCell.DropDownList = new HeaderDropDownList(0, true, true);
}
Private Sub setFirstColumnDropDownListButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setFirstColumnDropDownListButton.Click
' Get first column header cell.
Dim columnHeaderCell As ColumnHeaderCell = TryCast(Me.gcMultiRow1.ColumnHeaders(0)(0), ColumnHeaderCell)
' Create a drop down list with some default down down items.
columnHeaderCell.DropDownList = New HeaderDropDownList(0, True, True)
End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2