QueryCellInfo Event (GridModel)

Occurs when the model queries for style information about a specific cell.
<DescriptionAttribute("Occurs when the model queries for style information about a specific cell.")>
Public Event QueryCellInfo As GridQueryCellInfoEventHandler
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.")]
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.

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.  
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.


Syncfusion.Grid.Windows: 18.2460.0.44

See Also