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
close icon

Set multiple column as primary key

Good morning,

is it possible to set multiple column as primary key in a grid?

Is it possible do something like:

<e-grid-column field="Partnum" textAlign="Left" width="150" isPrimaryKey="true"></e-grid-column>
<e-grid-column field="SupplierId" visible="false" isPrimaryKey="true"></e-grid-column>

Thanks

1 Reply

PS Pavithra Subramaniyam Syncfusion Team March 26, 2019 09:56 AM UTC

Hi Mini, 

Greetings from Syncfusion. 

In Essential JavaScript 2 Grid you can define multiple Primary key column that have unique values. However the Grid actions which need primary key value will be done based on the first Primary key column in the Grid. 
 
Regards, 
Pavithra S. 
 


Loader.
Live Chat Icon For mobile
Up arrow icon