benlogan1981
Programmer
Hi
(I am coding in VB.net but believe datagrids are fairly consistent within .net - hence this post as well as the vb one)
Ok, I have a problem with datagrids - been battling with them for a few days now. I have an uneditable datagrid displaying some data out of my postgres db. That is fine and everything is working ok - the problem is that I dont want the user to be able to select the contents of a cell either. I want the selection of a row to always just highlight that row and nothing more specific than that.
Another problem I just noticed is that because I can change the row selected by clicking on the column to the left of the data, that is not picked up in my 'cell changed' method and so everything gets screwed up there also. Is there a way of removing that column (I think its just used for sorting) or how do I detect a proper row change.
Thanks
Ben
(I am coding in VB.net but believe datagrids are fairly consistent within .net - hence this post as well as the vb one)
Ok, I have a problem with datagrids - been battling with them for a few days now. I have an uneditable datagrid displaying some data out of my postgres db. That is fine and everything is working ok - the problem is that I dont want the user to be able to select the contents of a cell either. I want the selection of a row to always just highlight that row and nothing more specific than that.
Another problem I just noticed is that because I can change the row selected by clicking on the column to the left of the data, that is not picked up in my 'cell changed' method and so everything gets screwed up there also. Is there a way of removing that column (I think its just used for sorting) or how do I detect a proper row change.
Thanks
Ben