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

ShowInsertRow and error Auto ID generation not defined

4 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 31 May 2011, 12:05 PM

Hello
I am testing the radgridview with our Unidata database.
Our database interfaces is generated using a Bluefinity application, it results in VB code that allows access to the database.
When I set

 

 

ShowInsertRow

 

 

="True"

 

 

 

 

 

and click on the "Click here to add new item"
I get the error
(Database error: 59) Auto ID generation not defined for file 'ROOM.TYPES'

Not sure what the error means but sounds like some incompatibity with the interface code.
Any ideas ??
Also any comments on use of the radgridview with BlueFinity, and experences ?
Regards
Jim

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 31 May 2011, 12:21 PM
Hello Jim,

It seems that the error you have posted is coming from your database. What does it mean? Maybe you have to supply an ID for the room type? I am not really sure, since this is your database after all, you should know what this error means.

What happens when you add a new item to your source collection programmatically, i.e. without ever using RadGridView? 

What happens if you replace RadGridView with the stock toolkit DataGrid?

As for BlueFinity, I have never heard of it. What is it? Does it work with the standard toolkit DataGrid. Does it work with a ListBox. Does it work with any ItemsControl? In case it does -- it should work with RadGridView as well.

I hope this helps.

All the best,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jim
Top achievements
Rank 1
answered on 31 May 2011, 12:29 PM
Thanks for the pointers I will investigate..
Jim
0
Jim
Top achievements
Rank 1
answered on 31 May 2011, 12:40 PM
Just a note
The plain old DataGrid does the same.
So I will look at the interface.
Jim
0
Jim
Top achievements
Rank 1
answered on 02 Jun 2011, 07:28 AM
Solved
The insert mechanism eventually calls "new" to create a data object behind the row. Unfortunatly it was trying to create the object with "Auto Key" creation. Change to no key creation and things worked OK.

The button has a field Tag="Action=AddRow LinkedTo=dgrRoomtype"
Being fairly new Visual Studio is there any article you could recommend on how it gets from above to executing the interface code.
I assume it's some defined protocol that "magically" connects Action=AddRow to some code.
Thanks
Jim
Tags
GridView
Asked by
Jim
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Jim
Top achievements
Rank 1
Share this question
or