Quantcast
Channel: refresh the data table disable to select
Viewing all articles
Browse latest Browse all 21

refresh the data table disable to select

$
0
0
I have also had problems with getting the identity to reload when added to the database. It happens with the typed datatables. I have seen code where @@identity is used to retrieve the identity that the database assigns. Unfortunately:

Dim

adapter As OleDb.OleDbDataAdapter

AddHandler adap.RowUpdated, UpdateIdentity

works but in a typed dataset (Created with the wizard) this event is not accessible. I have had many problems for a while now with this and could never figure out why I couldn't get the MSDN examples to work on related tables. You can imagine the progrems with relations and bad ID numbers. Anyways, I fooling around and in the dataset designer I right clicked my tableadapter and clicked configure. When I clicked the advanced options on the bottom left the last (3rd) checkbox is refresh the data table. From the description it seems like it solves the problem but it is disabled. Greyed out and non selectable. What is going on here? This case was with an Access database. I just quickly added a SQL database file and BINGO, its enabled, I can click it. Is Access with OleDB not supported with this. Thanks so much in advance for help. I have had many sleepless nights and headaches with this.


Viewing all articles
Browse latest Browse all 21

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>