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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

get selected row

Thread ID:





123815 Apr 24,2016 09:06 AM UTC Apr 25,2016 08:49 AM UTC ASP.NET Web Forms 1
Tags: Grid
Asked On April 24, 2016 09:06 AM UTC

how to get selected row from ej grid
i want it in my cs code as an object ??

Jayaprakash Kamaraj [Syncfusion]
Replied On April 25, 2016 08:49 AM UTC

Hi Aladdin, 
Thank you for contacting Syncfusion support. 
We were able to get selected row in server using OnServerRowSelected server event. This event triggers when any of rows are selected in Grid. Please refer to the below code example, screenshot, Help document and sample. 
<ej:Grid ID="Grid1" runat="server"   AllowPaging="True" OnServerRowSelected="DefaultEvents_OnServerRowSelected"  
                <ej:Column Field="OrderID" HeaderText="Order ID"    TextAlign="Right" Width="90" /> 
                <ej:Column Field="CustomerID" HeaderText="Customer ID"   Width="100"  /> 
                <ej:Column Field="EmployeeID" HeaderText="Employee ID"  TextAlign="Right" Width="110"  /> 
                <ej:Column Field="Freight" HeaderText="Freight"  TextAlign="Right" Width="90" Format="{0:C}" /> 
                <ej:Column Field="ShipCity" HeaderText="Ship City" Width="100" /> 
        protected void DefaultEvents_OnServerRowSelected(object sender, GridEventArgs e) 
            for (int index = 0; index < e.Arguments.Count; index++) 
                var item = e.Arguments.ElementAt(index); 
                var itemKey = item.Key; 
                var itemValue = item.Value; 
            // do your operatios here 



Jayaprakash K. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon