Tell me if this is even possible:
I have a gridview bound to an ObjectDataSource providing me with data from a database. I'm filling the Objectdatasource using Linq-to-entities. Typical setup where I'm supplying the columns and rows.
Below I have a horrible graphical representation.
x_col x_col x_col
x_row| x_data x_data x_data
x_row| x_data x_data x_data
x_row| x_data x_data x_data
x_row| x_data x_data x_data
x_row| x_data x_data x_data
What I would like to do is add columns to this gridview from another table in the database: orginal data being x; different data being y.
x_col x_col x_col y_col y_col y_col
x_row| x_data x_data x_data y_data y_data y_data
x_row| x_data x_data x_data y_data y_data y_data
x_row| x_data x_data x_data y_data y_data y_data
x_row| x_data x_data x_data y_data y_data y_data
x_row| x_data x_data x_data y_data y_data y_data
I don't know any of the y info until runtime, so that is added dynamically. I don't need to update x back to the database, but I do need to update y.
It looks like the datasource can only have once select method, so I don't know how I can do this.
I hope I'm not being too abstract here.