Dear,
i have a grid with following fields. first column is ID i want to search in code for a particular id (for example where ID = 5) and get the rowindex and then position on that rowindex in the grid.
position on a particular rowindex in the grid is ok => await sfCourseGrid.SelectRowAsync(5);
But how can i search in data column ID = 5 and get the rowindex of that line?
See sample below.
<SfGrid @ref="@sfCourseGrid" DataSource="@CourseList" EnableHeaderFocus="true" AllowSelection="true"
AllowSorting="true" AllowFiltering="true" AllowPaging="true" Width="100%" Height="100%"
AllowGrouping="true" AllowResizing="true" AllowReordering="true" ShowColumnChooser="true"
AllowExcelExport="true" AllowPdfExport="true"
Toolbar="Toolbaritems">
<GridSelectionSettings Mode=Syncfusion.Blazor.Grids.SelectionMode.Row></GridSelectionSettings>
<GridEvents OnToolbarClick="ToolbarClick" RowSelected="RowSelectHandler" TValue="CourseListDTO"></GridEvents>
<GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
<GridPageSettings PageSize="100" PageCount="5"></GridPageSettings>
<GridEditSettings AllowAdding="true" AllowDeleting="true" AllowEditing="true" Mode="EditMode.Dialog"></GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(CourseListDTO.CourseId) HeaderText="ID" TextAlign="TextAlign.Right" Width="80" Visible="true" AutoFit="true"></GridColumn>
<GridColumn Field=@nameof(CourseListDTO.CourseInternalType) HeaderText="Internal type" Width="200" Visible="true" AutoFit="true"></GridColumn>
<GridColumn Field=@nameof(CourseListDTO.CourseExternalType) HeaderText="External type" Width="200" Visible="true" AutoFit="true"></GridColumn>