Hi, I have a question a bout a data bound data grid.

The grid has 5 columns, the first of which is read only. I thought that setting the column to read only would prevent the user from being able to alter the cell value.

However, it apears that I was wrong, not the first time definatly not the last :>.

Now the program throughs a read only error which i need to handly. Can any one please tell me which event is trigering the error.

The program still runs but i need to change the error displayed to the user and override the current one.

Thanks for reading

Recommended Answers

All 2 Replies

In the debugger look in the stack trace.
You will find there the last thing that happened before your program crashed.

right click the datagridview select properties and click events tab, there there is a dataerror event, you can handle that error to generate custom error message. there must be some other error events too, but i am in rush for the time being.

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.