﻿<?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?)  » Adding a new record to an UltraGrid problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 11 Sep 2026 14:25:34 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding a new record to an UltraGrid problem</title><link>http://forum.strataframe.net/FindPost15774.aspx</link><description>I have an UltraGrid bound to a Business Binding Source on a SF Maintenance Form. When I click on the New toolbar button, a new record is added to the bottom of the grid but the active record is set to the record at the top. This means a user would have to click on the new record before entering details.&lt;/P&gt;&lt;P&gt;For comparison, if I enable the AddNewBox on the UltraGrid itself, it will add a new record to the bottom and also make the new record the active row. Is there an easy way of doing this with the form New toolbar command?&lt;/P&gt;&lt;P&gt;Thanks in advance.</description><pubDate>Sat, 19 Apr 2008 11:24:25 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Adding a new record to an UltraGrid problem</title><link>http://forum.strataframe.net/FindPost15775.aspx</link><description>Hi Aaron.&lt;/P&gt;&lt;P&gt;If this is not the best practice, I'm sure I will be corrected, but try adding this code to your BO AfterAddNew event:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;Private Sub MyBO_AfterAddNew(ByVal e As System.EventArgs) Handles MyBO.AfterAddNew&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.MyUltraGridName.Refresh()&lt;BR&gt;End Sub&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Sat, 19 Apr 2008 11:24:25 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>