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

Info about DataBound event

Thread ID:





130073 Apr 19,2017 05:32 PM UTC Apr 20,2017 05:59 AM UTC ASP.NET Web Forms 1
Tags: Grid
Asked On April 19, 2017 05:32 PM UTC

Hi everyone, I would use the event DataBound to replace at code numbers some labels. With asp:GridView I use the following code:

        protected void dGrid_RowDataBound(Object sender, GridViewRowEventArgs e)
            if (e.Row.RowType == DataControlRowType.DataRow)
                IDictionary<ushort, string> ModelDescriptionNames = (IDictionary<ushort, string>)Application["ModelDescriptionNames"];
                e.Row.Cells[0].Text = ModelDescriptionNames[Convert.ToUInt16(e.Row.Cells[0].Text)];

It's possible a similar approach with Syncfusion grid?

Thanks in advance

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On April 20, 2017 05:59 AM UTC

Hi Matteo,  
Thanks for contacting Syncfusion Support.  
Usually, ejGrid a JavaScript will be rendered in the client-side. In the ASP.Net, the Grid will collect the required parameters and properties using some business classed defined within the Syncfusion Libraries. These properties were parsed to the JSON format which will render the controls using the referred scripts such as jQuery, jsrender and ej Scripts. 
So we cannot provide a server-end rowdatabound similar to the ASP Grid View. However, we have provided option to achieve your requirement using the client events of the Grid such as QueryCellInfo and RowDataBound. Refer to the following API References.  
We have already discussed about the formatting the cell using the queryCellInfo event.  
Seeni Sakthi Kumar S. 


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

or the page will be automatically redirected to 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