Hello,
I have finally managed to get the radgrid to work with all its features (insert, edit, delete, details view). However, the details table is showing me the same table that the original grid is showing. (Screenshot)
I have 2 table:
news:
- N_id
- title
- article
- time
- U_id
users
- U_id
- member
I have already populated the data manually. What I want to do when I click on the expand button to see the details table, is to see the user who wrote that article. And I have to SqlDatasources, I just have to edit one to show the user WHERE news.userid = users.id, but how?
EDIT: I figured out the query and I'm not getting any error when I load the page. But when I click on the expand button, I get something weird (Screenshot).
I just want to show the Name (member) of the person who wrote that article. Just 1 row.
I have finally managed to get the radgrid to work with all its features (insert, edit, delete, details view). However, the details table is showing me the same table that the original grid is showing. (Screenshot)
I have 2 table:
news:
- N_id
- title
- article
- time
- U_id
users
- U_id
- member
I have already populated the data manually. What I want to do when I click on the expand button to see the details table, is to see the user who wrote that article. And I have to SqlDatasources, I just have to edit one to show the user WHERE news.userid = users.id, but how?
EDIT: I figured out the query and I'm not getting any error when I load the page. But when I click on the expand button, I get something weird (Screenshot).
I just want to show the Name (member) of the person who wrote that article. Just 1 row.
SELECT
users.member, news.U_id
FROM
users
INNER
JOIN
news
ON
users.U_id=news.U_id