GridView best practice

S

SH

To All,

Just a guideline on the best practice for this issue.

I have a number of tables in SQL, and I want to join across them and display
their corresponding values in a datagrid. For example (fictitious), I have a
username, and they have a country associated with them. I join User to
Country (on CountryId) and want to display CountryName in the gridview. In an
ideal world we would still be able to edit/save the gridview without having
to go into a details view of the row.

So, at the moment the suggested solutions are to either handle this in the
OnRowCreated event on the gridview, and manually bind it here.. or create a
custom sproc that simply does the joins for you - and use
AutoGenerateColumns=True. Personally I am not a fan of either. My original
suggestion up front would be to leverage Linq to Sql, but this was shot down
by the old schoolers here.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,060
Latest member
BuyKetozenseACV

Latest Threads

Top