This is a migrated thread and some comments may be shown as answers.

[Solved] inserting a PK value

1 Answer 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 12 Sep 2009, 04:26 AM
hi

My primary key field is a nvarchar and my table structure eg COL1(nvarchar(50)) PK, COL2(Nvarchar(50)),COL3(Nvarchar(50))

How do i insert a PK value when the Popup in EditMode shows only COL2 and COL3?

Your demo http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx where CustomerID is Nvarchar based. When i add a new customer, it would not allow me to add a PK value.

Thanks

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 12 Sep 2009, 05:26 AM
Hi L,

In the demo the 'CustomerID' is an auto-inceremented Primary key field and hence they are hiding the column from the edit form by setting its ReadOnly property to true. If you want the primary key field to be visible in the edit form make the ReadOnly property to false.

Princy


Tags
Grid
Asked by
L
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or