C# Class FarsiLibrary.Win.Controls.DataGridViewFADateTimePickerCell

Inheritance: System.Windows.Forms.DataGridViewTextBoxCell
显示文件 Open project: HEskandari/FarsiLibrary

Private Properties

Property Type Description
GetColumn DataGridViewFADateTimePickerColumn
GetParsedDate PersianDate
IsInState bool
IsValueEmpty bool
OwnsEditor bool
PartPainted bool
SetValue void

Public Methods

Method Description
InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void

Protected Methods

Method Description
Paint ( Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts ) : void

Private Methods

Method Description
GetColumn ( ) : DataGridViewFADateTimePickerColumn
GetParsedDate ( string formattedValue ) : PersianDate
IsInState ( DataGridViewElementStates currentState, DataGridViewElementStates checkState ) : bool
IsValueEmpty ( object value ) : bool
OwnsEditor ( int rowIndex ) : bool

Determines whether this cell, at the given row index, shows the grid's editing control or not. The row index needs to be provided as a parameter because this cell may be shared among multiple rows.

PartPainted ( DataGridViewPaintParts paintParts, DataGridViewPaintParts paintPart ) : bool

Little utility function called by the Paint function to see if a particular part needs to be painted.

SetValue ( int rowIndex, System.DateTime value ) : void

Method Details

InitializeEditingControl() public method

public InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void
rowIndex int
initialFormattedValue object
dataGridViewCellStyle System.Windows.Forms.DataGridViewCellStyle
return void

Paint() protected method

protected Paint ( Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts ) : void
graphics System.Drawing.Graphics
clipBounds System.Drawing.Rectangle
cellBounds System.Drawing.Rectangle
rowIndex int
cellState DataGridViewElementStates
value object
formattedValue object
errorText string
cellStyle System.Windows.Forms.DataGridViewCellStyle
advancedBorderStyle System.Windows.Forms.DataGridViewAdvancedBorderStyle
paintParts DataGridViewPaintParts
return void