Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change value to be displayed in mmDataGridView
Message
From
10/07/2008 18:54:00
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01328179
Message ID:
01330408
Views:
22
>Hi Tim,
>
>Thanks. Yes, I was thinking of something like this for the 2nd choice. I wondered, though, if it might be possible to call a local method to display a pseudo-column without having to build a separate view or create a secondary table in the business object. The SQL Server part isn't too hard. It's figuring out the most painless method in .NET. I'm not working on this at the moment but it's coming up soon. I really want to display some data from another table in a grid bound to my primary business object. I'm sure I can create a business object based on a view to populate the grid and then have a grid method reposition the pointer in the primary business object, although I haven't conquered moving the pointer in the business object yet. There ought to be an easier way. It seems like I have done something like that in the past using something like your LNAME + ", " + FNAME for a combo box disply value but I have forgotten exactly what I did. I had to create a 2nd table in the
>business object with the additional field in the dataset. I'm going to have to find that code. That would be the simplest thing for Maurizio to do. I think part of the trick was to make the binding source the business object rather than the table name and then make the secondary table name the BindingSourceMember. If I can put my hands on that code I will post it.
>
>
Once your business object and entity object are created I would think you could add a property to your entity that gives you what you want. Bind that property to your column instead of the actual column. You would have to do the plumbing in the get and set to get the value from the actual property and back in again, but not a big deal.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform