Syncfusion.Grid.Windows


QueryCellInfo Event (GridModel)

Occurs when the model queries for style information about a specific cell.
Syntax
'Declaration
 
<DescriptionAttribute("Occurs when the model queries for style information about a specific cell.")>
<CategoryAttribute("Behavior")>
Public Event QueryCellInfo As GridQueryCellInfoEventHandler
'Usage
 
Dim instance As GridModel
Dim handler As GridQueryCellInfoEventHandler
 
AddHandler instance.QueryCellInfo, handler
[Description("Occurs when the model queries for style information about a specific cell.")]
[Category("Behavior")]
public event GridQueryCellInfoEventHandler QueryCellInfo
Event Data

The event handler receives an argument of type GridQueryCellInfoEventArgs containing data related to this event. The following GridQueryCellInfoEventArgs properties provide information specific to this event.

PropertyDescription
Gets the column index. (Inherited from Syncfusion.Windows.Forms.Grid.GridCellHandledEventArgs)
Indicates whether the event has been handled and no further processing of the event should happen. (Inherited from Syncfusion.ComponentModel.SyncfusionHandledEventArgs)
Gets the row index. (Inherited from Syncfusion.Windows.Forms.Grid.GridCellHandledEventArgs)
Gets the style information for the cell.  
Remarks
This event allows you to customize cell contents at run-time on demand, just before the cell is drawn or programmatically accessed through Item, ColStyles, RowStyles, or TableStyle.

If you made changes to GridQueryCellInfoEventArgs.Style you should also set Syncfusion.ComponentModel.SyncfusionHandledEventArgs.Handled to true. The grid will check this flag to see whether the style has been initialized. If the event has been marked as handled, the grid will not access cell information from its own data store Data. In the default case when the event is not marked as handled, the grid will locate cell information by calling GridData.Item.

See GridQueryCellInfoEventArgs for further discussion about this event.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also