M
mrstrong
Gday,
Am new to using datagrids so if anyone could assist or point in the right
direction in terms of resources - that would be much appreciated...
I have a form that has:
- a datagrid that displays summary data
- other controls (eg textboxes, comboboxes) that are editable
What I would like is when a use selects a row in the datagrid that the all
corresponding fields for that row of data shows up in the other controls
from where they can be edited.
I dont like the idea of depending on the datagrid position attribute to
return the selected row, as I would like to allow the datagrid to be able to
be sorted on any column - hence the position would appear to be
useless...unless you changed the form's dataview everytime the datagrid gets
re-sorted?
I believe what I need to do is get the key of selected row in the datagrid
and use this to synchronise the data that is getting displayed on the rest
of the form but am not sure of how to go about this...
If there are alternatives I would love to hear them.
Regards,
Peter
Am new to using datagrids so if anyone could assist or point in the right
direction in terms of resources - that would be much appreciated...
I have a form that has:
- a datagrid that displays summary data
- other controls (eg textboxes, comboboxes) that are editable
What I would like is when a use selects a row in the datagrid that the all
corresponding fields for that row of data shows up in the other controls
from where they can be edited.
I dont like the idea of depending on the datagrid position attribute to
return the selected row, as I would like to allow the datagrid to be able to
be sorted on any column - hence the position would appear to be
useless...unless you changed the form's dataview everytime the datagrid gets
re-sorted?
I believe what I need to do is get the key of selected row in the datagrid
and use this to synchronise the data that is getting displayed on the rest
of the form but am not sure of how to go about this...
If there are alternatives I would love to hear them.
Regards,
Peter