We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

In 17.2.46 selecting the first row in the grid results in error

<EjsGrid DataSource="@checks" AllowPaging="true" AllowSorting="true" AllowFiltering="true" AllowExcelExport="true" ModelType="@checkModel" AllowSelection="true">
                            <GridSelectionSettings Mode="Syncfusion.EJ2.Blazor.Grids.SelectionMode.Row" Type="SelectionType.Single"></GridSelectionSettings>
                            <GridEvents TValue="DTOs.APIs.Checks" RowSelected="@SelectRow" RowDeselected="@(()=> selectedCheck = null)"></GridEvents>
                                <GridColumn HeaderText="Check Number" Field="CheckNumber"></GridColumn>
                                <GridColumn HeaderText="Check Date" Field="CheckDate" Format="yMd"></GridColumn>
                                <GridColumn HeaderText="Check Amount" Field="Amount" Format="C2"></GridColumn>

void SelectRow(RowSelectEventArgs<DTOs.APIs.Checks> args)

private void GetCheckDetails(DTOs.APIs.Checks check)
        selectedCheck = check;

When I click the first row I get this error in the console:

It only seems to effect the first row, and when I sort and the first row say becomes the last, the last row is what causes the error.

Also, when I unselect a row then select a row the screen flashes twice then shows the new row. Is there another event I should be listening for instead of "RowDeselected"?

1 Reply

VN Vignesh Natarajan Syncfusion Team August 22, 2019 10:45 AM UTC

Hi ITninja,  

Greetings from Syncfusion support.  

Query: “selecting the first row in results in error” 

We have prepared a sample using your code example and we are not able to reproduce the issue while selecting / unselecting the records. Kindly download the sample from below link  

As we quite unclear about the issue, kindly share the following details.  

  1. Do you want to maintain selection when sorting action performed in Grid?.
  2. You have mentioned that when unselecting the record and select a record , screen flashed twice and select a new record. Can you please share the video demonstration of the reported issue.
  3. If possible share the issue reproducible sample or reproduce the reported issue in provided sample.
  4. In the RowDeselected event what action do you want to perform?. Kindly share details about your requirement.

Above requested details will be helpful for us to validate the reported query at our end and provide the solution as early as possible. 
Vignesh Natarajan 

Live Chat Icon For mobile
Up arrow icon