cadwalli
Active member
Hi,
I dont know whether im being incredibly stupid here (no comments ) but I am struggling to get some data from a data grid.
Basically, I have a collection of objections which populate the datagridview fine, however, when i double click the row, I want to retrieve the obejct that is being double clicked so that I can load it in to on screen fields for maniuplation.
However, for some reason i dont seem to be able to get the right syntax to make this work.
Ive tried retrieving the rowindex etc, but I completely confused as to how i get from the datagrid to lookign at the object in question itself.
For example, my grid could show:
Username Fullname ........
AnOther Andrew Other
PNut Peter Nut
etc...
Each line in the grid represents the data in the collection
When the line is double clicked i then want this information and more from teh object double clicked to appear in the text boxes - i.e. fields which arent shown in the grid such as Dateofbirth etc, so I need to know which object im selecting.
Sorry if my explanation was a bit tedious, its probably obvious what Im trying to achieve, just wanted to give as much info as possible
Hope someone can help
Thanks
Ian
And of course i meant collection of OBJECTS not OBJECTIONS ... its been a very long day!
I dont know whether im being incredibly stupid here (no comments ) but I am struggling to get some data from a data grid.
Basically, I have a collection of objections which populate the datagridview fine, however, when i double click the row, I want to retrieve the obejct that is being double clicked so that I can load it in to on screen fields for maniuplation.
However, for some reason i dont seem to be able to get the right syntax to make this work.
Ive tried retrieving the rowindex etc, but I completely confused as to how i get from the datagrid to lookign at the object in question itself.
For example, my grid could show:
Username Fullname ........
AnOther Andrew Other
PNut Peter Nut
etc...
Each line in the grid represents the data in the collection
When the line is double clicked i then want this information and more from teh object double clicked to appear in the text boxes - i.e. fields which arent shown in the grid such as Dateofbirth etc, so I need to know which object im selecting.
Sorry if my explanation was a bit tedious, its probably obvious what Im trying to achieve, just wanted to give as much info as possible
Hope someone can help
Thanks
Ian
And of course i meant collection of OBJECTS not OBJECTIONS ... its been a very long day!