Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Events

Status
Not open for further replies.

DwaineC

MIS
Jan 6, 2003
40
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top