Okay, Mr. Instructor...
On a form in a VB.NET app:
I have a bound grid (bound to a dataset table). Using the DataGridStyle and custom columns I am allowing editing of only a single column, the rest are Readonly. I want to prevent new rows from being added, and existing rows from being deleted. Of course, getting rid of the columnheader prevents a row from being selected to delete, but how do I prevent a [Ctrl-A] and [Delete] combination?
I've always struggled with keyevents in a grid because it is actually made up of 3 controls. I really hate to override the ProcessKeyEvents. I can't find a single grid property to disallow modifying the row collection. Any ideas? I would be eternally greatful...
Dwaine
On a form in a VB.NET app:
I have a bound grid (bound to a dataset table). Using the DataGridStyle and custom columns I am allowing editing of only a single column, the rest are Readonly. I want to prevent new rows from being added, and existing rows from being deleted. Of course, getting rid of the columnheader prevents a row from being selected to delete, but how do I prevent a [Ctrl-A] and [Delete] combination?
I've always struggled with keyevents in a grid because it is actually made up of 3 controls. I really hate to override the ProcessKeyEvents. I can't find a single grid property to disallow modifying the row collection. Any ideas? I would be eternally greatful...
Dwaine