HI,
I have a grid that represents rows in a table.
The table contains 10 fields of information, of which the user 99% of the time will only want to see 3 fields.
I have created a datasource containing these 3 fields and have bound this to the grid.
On the odd occasion that the user needs to edit a row in the grid, the grid displays a custom web usercontrol that contains all 10 fields of information.
What is the best way to load the data into the usercontrol?
I would like to somehow specify 2 datasources for the grid, 1 to be used for the grid display, ie containing just the 3 fields and another to be used when editing a row and displaying the usercontrol, this datasource would contain all the 10 fields of information for the selected row in the grid and should be loaded on demand just before displaying the edit usercontrol.
If all of this could be somehow hooked up to the DataItem property which I have created in my Usercontrol that would be great.
Hope this makes sense, any suggestions welcomed.
Antony
I have a grid that represents rows in a table.
The table contains 10 fields of information, of which the user 99% of the time will only want to see 3 fields.
I have created a datasource containing these 3 fields and have bound this to the grid.
On the odd occasion that the user needs to edit a row in the grid, the grid displays a custom web usercontrol that contains all 10 fields of information.
What is the best way to load the data into the usercontrol?
I would like to somehow specify 2 datasources for the grid, 1 to be used for the grid display, ie containing just the 3 fields and another to be used when editing a row and displaying the usercontrol, this datasource would contain all the 10 fields of information for the selected row in the grid and should be loaded on demand just before displaying the edit usercontrol.
If all of this could be somehow hooked up to the DataItem property which I have created in my Usercontrol that would be great.
Hope this makes sense, any suggestions welcomed.
Antony