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

Clicked row id in syncfusion asp.net

Hi, I have a question about syncfusion grid. I hava sycfusion grid. I want to delete a row from this grid and SQL Database. How can I focus that I clicked row's ID? Thanks for your replies.

1 Reply

MS Mani Sankar Durai Syncfusion Team May 15, 2017 12:45 PM UTC

Hi Hüseyin, 

Thanks for contacting Syncfusion support. 

Based on your query we have already documented a Syncfusion knowledge base of about how to perform CRUD operations in grid with SqlDataSource. 
Refer the code example. 
<asp:SqlDataSource ID="SqlData" runat="server" ConnectionString="<%$ ConnectionStrings:NORTHWNDConnectionString %>" 
            SelectCommand="SELECT * FROM [Orders]"  
        ... 
        DeleteCommand= 
        "DELETE FROM [Orders] WHERE [OrderID] = @OrderID" 
       ... 
</asp:SqlDataSource> 
 

From the above code example we can delete the record in grid based on primary key column (OrderID). 

Please let us know if you need further assistance. 

Regards, 
Manisankar Durai. 


Loader.
Up arrow icon