Id primary key display grid

Is there a way to display the id key of a table in the grid?
I have a table of orders whose primary key is the order id and I need to display it in the grid

Hello @Pedro ,

You can specify the primary key from the columns function columns | Grocery CRUD v3

Let me know if that worked for you.


I’m having the same issue. I tried to add the primary key field via the columns function, but it’s not shown.
Any idea to fix it?
Thanks! :slight_smile:

Hello @johnny

have tried the columns function and it still does not show the field.

Hello @Pedro , @tio this is probably because the columns are cached. Can you try removing your application cache? As also per link Clearing the Cache in Your Browser - HelpDocs Support

You can do that with the following steps:

  1. Click the Chrome Menu button in the top right corner
  2. Hover over More Tools
  3. Click Developer Tools
  4. In the top menu of developer tools, click Application
  5. In the left side menu, click Clear storage
  6. Scroll to the bottom of the page and tick Cache storage and Application cache under Cache
  7. Press Clear site data

EXCELLENT, works perfectly!

1 Like