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

How to get Grid Data

I have a Gird like this
<ej:Grid ID="IOTList" runat="server" AllowPaging="false" AllowResizeToFit="true" AllowFiltering ="true">
                <FilterSettings FilterType="Excel" /> 
                <EditSettings AllowEditing="True" EditMode="Batch" ShowConfirmDialog="true"></EditSettings>
                <ToolbarSettings ShowToolbar="True" ToolbarItems="edit,update,cancel"></ToolbarSettings>
            </ej:Grid>

and EditMode I set Batch
When User edit this Grid
I want to get this Grid all Data in C#
Now,I hope to get Grid Data like visual studio GridView -> GridView.Rows[i].Cells[j].Text
How can I do

1 Reply

JK Jayaprakash Kamaraj Syncfusion Team March 9, 2017 05:16 PM UTC

Hi Jason, 

Thank you for contacting Syncfusion support. 

We can get all the Grid Data in DataSource property of Grid in code behind. So, you can get all the Grid data in server edit event using DataSource property of Grid.  Please refer to the below help document and  code example. 




 
            var data = this.Grid1.DataSource; 
         


 


Regards, 

Jayaprakash K. 


Loader.
Up arrow icon