I am new to WPF, need some help about how to design/approach a task. Was actually trying out some samples, and could successfully pull data from back end and show it on a page in tabular format. Now I wanted to add one more column to the table, which should have a link. And if the user clicks a link, I should know which link the user clicked, to which row the link belongs and perform some action based on the value.
This is one scenario, there might be some other scenarios which might come later on. How should I go ahead, I mean the approach.
mburati 060000VQ20426 Posts
Re: Approach2011-10-31T17:37:15ZThis is the accepted answer. This is the accepted answer.
- aryan_raj 2700002ARW
If you're new to WPF/WEF we typically suggest going through the out of the box samples and tutorial along with the Learning WPF/WEF Roadmap on the Wiki at: http://www-10.lotus.com/ldd/pfwiki.nsf
View and Form can automatically turn one column of your data into links to a details action, which may be the simplest and most automated way to get what you're looking for.
If View and Form doesn't meet your needs then you may be able to place a Link on a column of your data an pass an argument from the row loop variable to the details method you select as the submit action of that Link.
If you need an additional column added to your data for your link column since you don't want any of the existing column text on the link, then you can add a column with Data Column Modifier.
Try searching this forum and more importantly, the higher traffic WEF Best Practices forum for things like "Add column", "Link row loop var" and simmilar, as these questions and answers have been discussed in these forums before.
I hope that info helps,