C# Class FarsiLibrary.Win.Controls.DataGridViewFADateTimePickerEditor

Inheritance: FADatePicker, IDataGridViewEditingControl
Show file Open project: HEskandari/FarsiLibrary Class Usage Examples

Public Methods

Method Description
ApplyCellStyleToEditingControl ( System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void

Changes the control's user interface (UI) to be consistent with the specified cell style.

DataGridViewFADateTimePickerEditor ( ) : System
EditingControlWantsInputKey ( Keys keyData, bool dataGridViewWantsInputKey ) : bool

Determines whether the specified key is a regular input key that the editing control should process or a special key that the should process.

GetEditingControlFormattedValue ( DataGridViewDataErrorContexts context ) : object

Retrieves the formatted value of the cell.

PrepareEditingControlForEdit ( bool selectAll ) : void

Prepares the currently selected cell for editing.

Private Methods

Method Description
NotifyDataGridViewOfValueChange ( ) : void

Small utility function that updates the local dirty state and notifies the grid of the value change.

OnInternalSelectedDateTimeChanged ( object sender, EventArgs e ) : void

Method Details

ApplyCellStyleToEditingControl() public method

Changes the control's user interface (UI) to be consistent with the specified cell style.
public ApplyCellStyleToEditingControl ( System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void
dataGridViewCellStyle System.Windows.Forms.DataGridViewCellStyle The to use as the model for the UI.
return void

DataGridViewFADateTimePickerEditor() public method

public DataGridViewFADateTimePickerEditor ( ) : System
return System

EditingControlWantsInputKey() public method

Determines whether the specified key is a regular input key that the editing control should process or a special key that the should process.
public EditingControlWantsInputKey ( Keys keyData, bool dataGridViewWantsInputKey ) : bool
keyData Keys A that represents the key that was pressed.
dataGridViewWantsInputKey bool true when the wants to process the in keyData; otherwise, false.
return bool

GetEditingControlFormattedValue() public method

Retrieves the formatted value of the cell.
public GetEditingControlFormattedValue ( DataGridViewDataErrorContexts context ) : object
context DataGridViewDataErrorContexts A bitwise combination of values that specifies the context in which the data is needed.
return object

PrepareEditingControlForEdit() public method

Prepares the currently selected cell for editing.
public PrepareEditingControlForEdit ( bool selectAll ) : void
selectAll bool true to select all of the cell's content; otherwise, false.
return void