Class AfterAutoFillCellEventArgs<T>
Provides event arguments for autofill operations on individual cells, containing detailed information about the cell and its associated data.
Inherited Members
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.Grids.dll
Syntax
public class AfterAutoFillCellEventArgs<T> : GridEventBaseArgs
Type Parameters
| Name | Description |
|---|---|
| T | The data type of the grid's row data. |
Remarks
Provides access to cell-level details and row data after autofill completion. Facilitates post-autofill processing tasks including validation, logging, auditing, and triggering dependent operations or business logic updates.
Examples
The following example demonstrates how to handle the AfterAutoFillCell event.
<SfGrid DataSource="@Orders" EnableAutoFill="true" @ref="DefaultGrid" >
<GridSelectionSettings CellSelectionMode="CellSelectionMode.Box" Mode="SelectionMode.Cell" Type="SelectionType.Multiple"></GridSelectionSettings>
<GridEditSettings AllowAdding="true" AllowDeleting="true" AllowEditing="true" Mode="EditMode.Batch"></GridEditSettings>
<GridEvents TValue="Order" AfterAutoFillCell="OnAfterAutoFillCell"></GridEvents>
</SfGrid>
@code{
private async Task OnAfterAutoFillCell(AfterAutoFillCellEventArgs<Order> args)
{
// access the autofilled value and row data
var autofilledValue = args.Value;
var rowData = args.Data;
...
}
}
Constructors
AfterAutoFillCellEventArgs()
Declaration
public AfterAutoFillCellEventArgs()
Properties
ColumnIndex
Gets the zero-based column index of the cell being autofilled.
Declaration
public int ColumnIndex { get; }
Property Value
| Type | Description |
|---|---|
| int | An integer representing the zero-based column index within the grid's column collection. |
ColumnName
Gets the field name of the column associated with the cell being autofilled.
Declaration
public string? ColumnName { get; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the field name (column binding property) associated with the autofill operation. Returns |
Data
Gets the complete row data object associated with the cell being autofilled.
Declaration
public T? Data { get; }
Property Value
| Type | Description |
|---|---|
| T | An object of type |
RowIndex
Gets the zero-based row index of the cell being autofilled.
Declaration
public int RowIndex { get; }
Property Value
| Type | Description |
|---|---|
| int | An integer representing the zero-based row index within the grid's current view. |
Value
Gets the value that was autofilled into the current cell.
Declaration
public object? Value { get; }
Property Value
| Type | Description |
|---|---|
| object | The autofill value, which is determined by the autofill operation mode and the source cell value. The value type corresponds to the column's data type. Defaults to |
Remarks
This property is read-only and provides access to the autofilled value for post-autofill operations.