<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Removing the First Empty Entry in Drop-Down Box in Grid]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=9293</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=9293&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Removing the First Empty Entry in Drop-Down Box in Grid.]]></description>
		<lastBuildDate>Mon, 07 Jul 2025 13:26:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Removing the First Empty Entry in Drop-Down Box in Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=52692#p52692</link>
			<description><![CDATA[<p>1. I don&#039;t know about such a possibility and the class is not available in the script.<br />2. I tried it on my program, by default the value in the cell is selected in the list. <br />If you want to specify a value by default, use the &#039;OnAplyEditText&#039; event. <br />For example, &#039; if (ACol = 1) and (Value &lt;&gt; &#039;3&#039;) then Value := &#039;3&#039; ; &#039; . <br />Moreover, for a cell with a list, for &#039;Value&#039; you need to specify the row number in the drop-down list.<br />Numbering from 0 where 0 is an empty line. For other fields, this will be the text value in the cell.</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Mon, 07 Jul 2025 13:26:10 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=52692#p52692</guid>
		</item>
		<item>
			<title><![CDATA[Removing the First Empty Entry in Drop-Down Box in Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=52689#p52689</link>
			<description><![CDATA[<p>Hello,</p><p>I was wondering if there is a way to remove the first empty entry in the drop-down box when editing a cell that is in a column with relationship to a different table (foreign key)?</p><p>Similar to the ComboBox component which one can change &quot;FirstEmptyItem&quot; to true or false - in this case, I would like it to be false.</p><p>I am currently using .dbListFields method. However, even when I tried generating the grid using the friendly UI, my table fields are set to &#039;Not null&#039; with a default value, I still get a blank entry at the top.</p><p>Additionally it would also be great if when editing the cell, the drop-down selection will be on the already set value - is there a way to do that also?</p><p>As always, thank you in advance for any help!</p>]]></description>
			<author><![CDATA[null@example.com (SandBird)]]></author>
			<pubDate>Sun, 06 Jul 2025 04:25:39 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=52689#p52689</guid>
		</item>
	</channel>
</rss>
