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.
Unfortunately, activation email could not send to your email. Please try again.

How to format and add isPrimaryKey property to auto generated columns?

 

We can format the auto generated column using dataBound event. While we remove the columns property, grid will automatically generate the column using the field name of the dataSource.

 The following code example shows how to format and add primaryKey to grid column.

JS

MVC

ASP.NET

Screen shot:

   Formatted of auto generated column

Article ID: Published Date: Last Revised Date: Platform: Control:
7130 10/27/2016 10/27/2016 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.