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 problems

Status
Not open for further replies.

benlogan1981

Programmer
Dec 9, 2001
14
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top