Wrong row is selected on click/Action column does not display in every row

QuestionsWrong row is selected on click/Action column does not display in every row
Santosh asked 2 years ago

Hello,

I already understand why this is happening because there is a similar post: https://www.gridphp.com/faqs/#2

My problem is that I’m trying to render a table where the primary key is defined by a tuple of foreign keys. I don’t have a single column that can define each row by itself. The tuple, of course, is unique.

What can I do to fix this? Thanks in advance.

2 Answers
Abu answered 2 years ago

Hello,

You can concat all three field with a separator and alias it as a new field in your query.

Then use this field as first field of grid. You can make it hidden to avoid confusion.

Santosh answered 2 years ago

It worked perfectly, thank you!

Your Answer

19 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?