DataGrid Custom Control Question

  • Thread starter Thread starter gnassar
  • Start date Start date
G

gnassar

I'm creating a simple custom control by inheriting the DataGrid
Control. The reason I want to do this is because I want to stop the
user from being able to enter the tables inside. Seems contrary to what
the control is supposed to do but this is what I need.

When someone is to click on the table, usually it allows them to edit
the data in the block. I've set the table to read only to the user can
not edit whats in the entries but, he can still enter. The window focus
is transferred to that area in the table, which is greyed out, but the
focus is in that cell only.

Essentially I am making the user click and select only row by row
values. I want to stop him / her from choosing cells. Does anyone
happen to know offhand the function I have to override to stop the user
from entering a cell. I've already made the code to select a row, which
works, but I can't stop the user from entering a cell when he or she
single \ double clicks.

Thanks for your time
G
 
I'm wondering if you might get a better response in
microsoft.public.dotnet.framework.windowsforms.controls.

Brian
 
Back
Top