>>>I think in VFP there must have been 100 ways to skin a cat.
>>>
>>>In .NET there seemed to be a 1,000 ways to skin a cat.
>>>
>>>Add in Linq and WPF and you seem to get about 10,000 ways to skin a cat.
>>>
>>>Finding the best way to skin a cat is starting to feel like looking for a needle in a haystack.
>>>
>>>(I think I just wrote a 1000 lines of code trying different ways to solve what seemed like a simple problem, some of them worked, some of them didn't. Final solution was one line of code and it works great! See I told you it was simple. <g>)
>>
>>Wanna share the line? <s>
>
>I was trying to display a calculated column in an Xceed WPF datagrid.
>
>I came up with many creative and inventive ways to accomplish it, most of them probably dead wrong. And none of them felt like the correct way to do it.
>
>I'm still getting used to the concept of nTier or the solution probably would have been obvious from the start. The calculation didn't belong in the grid, it belonged in the business layer.
>
>The solution was so moronically simple it's almost embarrassing that I didn't think of it first.
>
>I simply added this to my entity class:
>
>
>public decimal Balance { get { return Amount - Paid; } };
>
>
>It works great, passes through my linq queries without any problems, the grid just thinks it's another column and displays, sorts and groups it correctly.
>
>I'm thinking of framing it, and hanging it next to the dents in the wall were I was banging my head. <g>
You did VFP right? Access methods ring a bell? (g,d&r)