﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Editing data using DevExpress</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 23:45:07 GMT</lastBuildDate><ttl>20</ttl><item><title>Editing data using DevExpress</title><link>http://forum.strataframe.net/FindPost6785.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I am using DevExpress Grid for data entry. I am using BindingBusinessSource for data binding. &lt;/P&gt;&lt;P&gt;My question, how could I have additional column that show product description, for example after select product code?&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Fri, 16 Feb 2007 09:37:58 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Editing data using DevExpress</title><link>http://forum.strataframe.net/FindPost6875.aspx</link><description>No.&amp;nbsp; You can create custom properties to a business object.&amp;nbsp; If you look at the tutorial documentation it shows you how to do this:&lt;P&gt;Application Framework -&amp;gt; Getting Started -&amp;gt; Creating a WinForms App -&amp;gt; Adding Custom Field Properties &lt;/P&gt;&lt;P&gt;You can then make this a Readonly property and then execute a scalar query to retrieve the data:&lt;/P&gt;&lt;P&gt;[codesnippet]Public Readonly Property MyCustomProperty As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Establish Locals&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim loCommand As New SqlCommand()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loCommand.CommandText = "SELECT MyDescriptionField FROM MyTable WHERE MyFK=@MyFK")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loCommand.Parameters.Add("@MyFK",SqlDataType.Int)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loCommand.Parameters("@MyFK").Value = Me.MyFKField&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return CType(Me.ExecuteScalar(loCommand), String)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;End Property[/codesnippet]</description><pubDate>Fri, 16 Feb 2007 09:37:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Editing data using DevExpress</title><link>http://forum.strataframe.net/FindPost6873.aspx</link><description>[quote] You can use a scalar method to pull the description from a FK table.[/quote]&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
Do you meant to use ADO.NET code directly to retrieve the FK desciption?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Fri, 16 Feb 2007 09:28:45 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Editing data using DevExpress</title><link>http://forum.strataframe.net/FindPost6805.aspx</link><description>Include it in your SQL query or create a custom field.&amp;nbsp; I recommend the custom field which returns the description.&amp;nbsp; You can use a scalar method to pull the description from a FK table.&amp;nbsp; When you create a custom field, the BO treats it as though it belongs to that table.&amp;nbsp; You can see how to do this in the docs or the CRM sample for examples of how to achieve this.</description><pubDate>Thu, 15 Feb 2007 10:01:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>