프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AdjustPadding | void | ||
DataGridView_ColumnDisplayIndexChanged | void | ||
DataGridView_ColumnHeadersHeightChanged | void | ||
DataGridView_ColumnSortModeChanged | void | ||
DataGridView_ColumnWidthChanged | void | ||
DataGridView_DataBindingComplete | void | ||
DataGridView_DataSourceChanged | void | ||
DataGridView_Scroll | void | ||
DataGridView_SizeChanged | void | ||
DropDownListBox_KeyDown | void | ||
DropDownListBox_LostFocus | void | ||
DropDownListBox_MouseClick | void | ||
FilterWithoutCurrentColumn | String | ||
HandleDataGridViewEvents | void | ||
HandleDropDownListBoxEvents | void | ||
InvalidateDropDownButtonBounds | void | ||
PopulateFilters | void | ||
RefreshDGV | void | ||
ResetDropDown | void | ||
ResetFilter | void | ||
SetDropDownButtonBounds | void | ||
SetDropDownListBoxBounds | void | ||
SortByColumn | void | ||
UnhandleDropDownListBoxEvents | void | ||
UpdateFilter | void | ||
VerifyDataSource | void |
메소드 | 설명 | |
---|---|---|
Clone ( ) : object |
Creates an exact copy of this cell.
|
|
DataGridViewAutoFilterSingleColumnHeaderCell ( ) : System |
Initializes a new instance of the DataGridViewColumnHeaderCell class.
|
|
DataGridViewAutoFilterSingleColumnHeaderCell ( System.Windows.Forms.DataGridViewColumnHeaderCell oldHeaderCell ) : System |
Initializes a new instance of the DataGridViewColumnHeaderCell class and sets its property values to the property values of the specified DataGridViewColumnHeaderCell.
|
|
GetFilterStatus ( System.Windows.Forms.DataGridView dataGridView ) : String |
Gets a status string for the specified DataGridView indicating the number of visible rows in the bound, filtered BindingSource, or String.Empty if all rows are currently visible.
|
|
HideDropDownList ( ) : void |
Hides the drop-down filter list.
|
|
RemoveFilter ( System.Windows.Forms.DataGridView dataGridView ) : void |
Removes the filter from the BindingSource bound to the specified DataGridView.
|
|
ShowDropDownList ( ) : void |
Displays the drop-down filter list.
|
메소드 | 설명 | |
---|---|---|
OnDataGridViewChanged ( ) : void |
Called when the value of the DataGridView property changes in order to perform initialization that requires access to the owning control and column.
|
|
OnMouseDown ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void |
Handles mouse clicks to the header cell, displaying the drop-down list or sorting the owning column as appropriate.
|
|
Paint ( |
Paints the column header cell, including the drop-down button.
|
메소드 | 설명 | |
---|---|---|
AdjustPadding ( |
Adjusts the cell padding to widen the header by the drop-down button width.
|
|
DataGridView_ColumnDisplayIndexChanged ( object sender, System.Windows.Forms.DataGridViewColumnEventArgs e ) : void |
Invalidates the drop-down button bounds when the column display index changes.
|
|
DataGridView_ColumnHeadersHeightChanged ( object sender, |
Invalidates the drop-down button bounds when the height of the column headers changes.
|
|
DataGridView_ColumnSortModeChanged ( object sender, System.Windows.Forms.DataGridViewColumnEventArgs e ) : void |
Throws an exception when the column sort mode is changed to Automatic.
|
|
DataGridView_ColumnWidthChanged ( object sender, System.Windows.Forms.DataGridViewColumnEventArgs e ) : void |
Invalidates the drop-down button bounds when a column width changes in the DataGridView control. A width change in any column of the control has the potential to affect the drop-down button location, depending on the current horizontal scrolling position and whether the changed column is to the left or right of the current column. It is easier to invalidate the button in all cases.
|
|
DataGridView_DataBindingComplete ( object sender, |
Invalidates the drop-down button bounds, hides the drop-down filter list, if it is showing, and resets the cached filter values if the filter has been removed.
|
|
DataGridView_DataSourceChanged ( object sender, |
Verifies that the data source meets requirements, invalidates the drop-down button bounds, hides the drop-down filter list if it is showing, and resets the cached filter values if the filter has been removed.
|
|
DataGridView_Scroll ( object sender, |
Invalidates the drop-down button bounds when the user scrolls horizontally.
|
|
DataGridView_SizeChanged ( object sender, |
Invalidates the drop-down button bounds when the size of the DataGridView changes. This prevents a painting issue that occurs when the right edge of the control moves to the right and the control contents have previously been scrolled to the right.
|
|
DropDownListBox_KeyDown ( object sender, |
Handles the ENTER and ESC keys.
|
|
DropDownListBox_LostFocus ( object sender, |
Hides the drop-down list when it loses focus.
|
|
DropDownListBox_MouseClick ( object sender, MouseEventArgs e ) : void |
Adjusts the filter in response to a user selection from the drop-down list.
|
|
FilterWithoutCurrentColumn ( String filter ) : String |
Returns a copy of the specified filter string after removing the part that filters the current column, if present.
|
|
HandleDataGridViewEvents ( ) : void |
Add handlers to various DataGridView events, primarily to invalidate the drop-down button bounds, hide the drop-down list, and reset cached filter values when changes in the DataGridView require it.
|
|
HandleDropDownListBoxEvents ( ) : void |
Adds handlers to ListBox events for handling mouse and keyboard input.
|
|
InvalidateDropDownButtonBounds ( ) : void |
Sets dropDownButtonBoundsValue to Rectangle.Empty if it isn't already empty. This indicates that the button bounds should be recalculated.
|
|
PopulateFilters ( ) : void |
Populates the filters dictionary with formatted and unformatted string representations of each unique value in the column, accounting for all filters except the current column's. Also adds special filter options.
|
|
RefreshDGV ( int currentRow ) : void |
forces refreshing this tab
|
|
ResetDropDown ( ) : void |
Invalidates the drop-down button bounds and hides the filter list if it is showing.
|
|
ResetFilter ( ) : void |
Resets the cached filter values if the filter has been removed.
|
|
SetDropDownButtonBounds ( ) : void |
Sets the position and size of dropDownButtonBoundsValue based on the current cell bounds and the preferred cell height for a single line of header text.
|
|
SetDropDownListBoxBounds ( ) : void |
Sets the dropDownListBox size and position based on the formatted values in the filters dictionary and the position of the drop-down button. Called only by ShowDropDownListBox.
|
|
SortByColumn ( ) : void |
Sorts the DataGridView by the current column if AutomaticSortingEnabled is true.
|
|
UnhandleDropDownListBoxEvents ( ) : void |
Removes the ListBox event handlers.
|
|
UpdateFilter ( ) : void |
Updates the BindingSource.Filter value based on a user selection from the drop-down filter list.
|
|
VerifyDataSource ( ) : void |
Confirms that the data source, if it has been set, is a BindingSource.
|
public DataGridViewAutoFilterSingleColumnHeaderCell ( ) : System | ||
리턴 | System |
public DataGridViewAutoFilterSingleColumnHeaderCell ( System.Windows.Forms.DataGridViewColumnHeaderCell oldHeaderCell ) : System | ||
oldHeaderCell | System.Windows.Forms.DataGridViewColumnHeaderCell | The DataGridViewColumnHeaderCell to copy property values from. |
리턴 | System |
public static GetFilterStatus ( System.Windows.Forms.DataGridView dataGridView ) : String | ||
dataGridView | System.Windows.Forms.DataGridView | The DataGridView bound to the /// BindingSource to return the filter status for. |
리턴 | String |
protected OnMouseDown ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void | ||
e | System.Windows.Forms.DataGridViewCellMouseEventArgs | A DataGridViewCellMouseEventArgs that contains the event data. |
리턴 | void |
protected Paint ( |
||
graphics | The Graphics used to paint the DataGridViewCell. | |
clipBounds | A Rectangle that represents the area of the DataGridView that needs to be repainted. | |
cellBounds | A Rectangle that contains the bounds of the DataGridViewCell that is being painted. | |
rowIndex | int | The row index of the cell that is being painted. |
cellState | DataGridViewElementStates | A bitwise combination of DataGridViewElementStates values that specifies the state of the cell. |
value | object | The data of the DataGridViewCell that is being painted. |
formattedValue | object | The formatted data of the DataGridViewCell that is being painted. |
errorText | string | An error message that is associated with the cell. |
cellStyle | System.Windows.Forms.DataGridViewCellStyle | A DataGridViewCellStyle that contains formatting and style information about the cell. |
advancedBorderStyle | System.Windows.Forms.DataGridViewAdvancedBorderStyle | A DataGridViewAdvancedBorderStyle that contains border styles for the cell that is being painted. |
paintParts | DataGridViewPaintParts | A bitwise combination of the DataGridViewPaintParts values that specifies which parts of the cell need to be painted. |
리턴 | void |
public static RemoveFilter ( System.Windows.Forms.DataGridView dataGridView ) : void | ||
dataGridView | System.Windows.Forms.DataGridView | The DataGridView bound to the BindingSource to unfilter. |
리턴 | void |