I have a DataGridView form (System.Windows.Forms) in VS2012 (VB) that looks fine when I Preview it in VS:
Yet when I recompile and run the program, the latest line I added to the Access file is missing (ID 19, which I added as 20 then pushed it to 19; ID 20 is always hidden). The data source is an Access file with 1 simple table.
Here's what it looks like in the recompiled program:
As you can see, there is still 1 row missing. And row 20 is still correctly hidden, which is right. But I'm not sure why the new row (19) is still missing.
I believe the Fill()
and GetData()
function are all standard. Any thoughts?
The rest of the form works fine; it pulls numbers from the Access file and updates (Refresh) them on the program display.
It took a while to find, but I dug out this line in a refresh function:
xxxxxx.Filter = "ID < 19"
And change it to 20.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.