Hi all:
I have little experience in C#.NET, and below is what I got so far:
I created a DataGridView which bound to an ObjectDataSource(a generic list, that is).
Although I can make good use of the DataGridView's CellClick event and its corresponding delegate interface(DataGridViewCellEventHandler) to do my business logic well, I am still not happy with the overall logic.
Basically the drawback of the above approach is that for some certain columns, there's no need to have a CellClick event bound to it. They are simply displaying info, not try to listen to some CellClick events.
I've tried to achieve it for quite some time. I tried to disable such columns from being able to be clicked but got no luck...
Is there a good way go around this issue?
I really don't want to check what's the actual columnIndex in my delegate handler functions and then act accordingly. Basically, if the CellClick wouldn't be triggered in the first place, then that would be an excellent solution.
Many thanks in advance!