I am developing a Windows application using VB.NET. I have a datagrid control bound to a dataset which is populated from an Access database. When a user using my application clicks on a row in the grid, a triangle appears in a column on the left of the grid indicating the selected row. However, if the user does nothing, after several minutes, the selected row changes to the first row in the grid and the triangle indicating the selected row moves to the first row. This is very annoying. How can I prevent the selected row from changing automatically?
Thanks, in advance for any help that can be offered on this.

I'm think the problem you are having is that you are setting the DataSource during the instantiation of the form. Please post source of program (fragment) here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.