<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[StringGrid]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine StringGrid tabelle, habe dort schon soweit alles fertig, mit name etc. aus einer datei laden! das funktioniert, ich will nur jetzt, wenn ich vorne die erste zelle anklicke, das er mir die ganze zeile übernimmt und mir in meine EditObjekte reinpackt</p>
<p>habs schon folgendermaßen probiert:</p>
<pre><code>void __fastcall TForm4::StringGrid1SelectCell(TObject *Sender, int ACol,
      int ARow, bool &amp;CanSelect)
{
  Form2-&gt;Edit3-&gt;Text=(StringGrid1-&gt;Cells [1] [1]);
  Form2-&gt;Label22-&gt;Caption=(StringGrid1-&gt;Cells [2] [1]);
  Form2-&gt;Edit4-&gt;Text=(StringGrid1-&gt;Cells [3] [1]);
  Form2-&gt;Edit6-&gt;Text=(StringGrid1-&gt;Cells [4] [1]);
}
</code></pre>
<p>leider weiß ich nicht, warum er nicht darauf reagiert wenn ich eine zelle anklicke, also ich weiß, das ich die cellen schon in meinem code drin habe, aber ich weiß einfach nicht, wie ich es anders machen sollte!</p>
<pre><code>void __fastcall TForm4::StringGrid1SelectCell(TObject *Sender, int ACol,
      int ARow, bool &amp;CanSelect)
{
  Form2-&gt;Edit3-&gt;Text=(StringGrid1-&gt;OnSelectCell);
  Form2-&gt;Label22-&gt;Caption=(StringGrid1-&gt;OnSelectCell);
  Form2-&gt;Edit4-&gt;Text=(StringGrid1-&gt;OnSelectCell);
  Form2-&gt;Edit6-&gt;Text=(StringGrid1-&gt;OnSelectCell);
}
</code></pre>
<p>das funktioniert leider nicht!</p>
<p>kann mir da wer weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/133759/stringgrid</link><generator>RSS for Node</generator><lastBuildDate>Fri, 31 Jul 2026 23:31:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/133759.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jan 2006 15:15:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to StringGrid on Fri, 20 Jan 2006 15:15:44 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine StringGrid tabelle, habe dort schon soweit alles fertig, mit name etc. aus einer datei laden! das funktioniert, ich will nur jetzt, wenn ich vorne die erste zelle anklicke, das er mir die ganze zeile übernimmt und mir in meine EditObjekte reinpackt</p>
<p>habs schon folgendermaßen probiert:</p>
<pre><code>void __fastcall TForm4::StringGrid1SelectCell(TObject *Sender, int ACol,
      int ARow, bool &amp;CanSelect)
{
  Form2-&gt;Edit3-&gt;Text=(StringGrid1-&gt;Cells [1] [1]);
  Form2-&gt;Label22-&gt;Caption=(StringGrid1-&gt;Cells [2] [1]);
  Form2-&gt;Edit4-&gt;Text=(StringGrid1-&gt;Cells [3] [1]);
  Form2-&gt;Edit6-&gt;Text=(StringGrid1-&gt;Cells [4] [1]);
}
</code></pre>
<p>leider weiß ich nicht, warum er nicht darauf reagiert wenn ich eine zelle anklicke, also ich weiß, das ich die cellen schon in meinem code drin habe, aber ich weiß einfach nicht, wie ich es anders machen sollte!</p>
<pre><code>void __fastcall TForm4::StringGrid1SelectCell(TObject *Sender, int ACol,
      int ARow, bool &amp;CanSelect)
{
  Form2-&gt;Edit3-&gt;Text=(StringGrid1-&gt;OnSelectCell);
  Form2-&gt;Label22-&gt;Caption=(StringGrid1-&gt;OnSelectCell);
  Form2-&gt;Edit4-&gt;Text=(StringGrid1-&gt;OnSelectCell);
  Form2-&gt;Edit6-&gt;Text=(StringGrid1-&gt;OnSelectCell);
}
</code></pre>
<p>das funktioniert leider nicht!</p>
<p>kann mir da wer weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/971478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/971478</guid><dc:creator><![CDATA[Andy5000]]></dc:creator><pubDate>Fri, 20 Jan 2006 15:15:44 GMT</pubDate></item><item><title><![CDATA[Reply to StringGrid on Fri, 20 Jan 2006 15:18:44 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>wo ist das Problem?</p>
<pre><code class="language-cpp">void __fastcall TForm4::StringGrid1SelectCell(TObject *Sender, int ACol,
      int ARow, bool &amp;CanSelect)
{
  Form2-&gt;Edit3-&gt;Text= StringGrid1-&gt;Cells [1] [StringGrid1-&gt;Row];
  Form2-&gt;Label22-&gt;Caption= StringGrid1-&gt;Cells [2] [StringGrid1-&gt;Row];
  Form2-&gt;Edit4-&gt;Text= StringGrid1-&gt;Cells [3] [StringGrid1-&gt;Row];
  Form2-&gt;Edit6-&gt;Text= StringGrid1-&gt;Cells [4] [StringGrid1-&gt;Row]);
}
</code></pre>
<p>Btw : Verwende für deine Controls und Forms eindeutige treffende Namen.</p>
<p>Außerdem ist auch der Threadtitel hier nicht aussgekräftig.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/971479</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/971479</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 20 Jan 2006 15:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to StringGrid on Fri, 20 Jan 2006 16:59:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TForm4::StringGrid1SelectCell(TObject *Sender, int ACol,
      int ARow, bool &amp;CanSelect)
{
  Form2-&gt;Edit3-&gt;Text= StringGrid1-&gt;Cells [1] [ARow];
  Form2-&gt;Label22-&gt;Caption= StringGrid1-&gt;Cells [2] [ARow];
  Form2-&gt;Edit4-&gt;Text= StringGrid1-&gt;Cells [3] [ARow];
  Form2-&gt;Edit6-&gt;Text= StringGrid1-&gt;Cells [4] [ARow);
}
</code></pre>
<p>nicht das ich akari wiedersprechen möchte, aber so siehts doch schöner aus und ist portabler <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>mfg<br />
BigNeal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/971572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/971572</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Fri, 20 Jan 2006 16:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to StringGrid on Fri, 20 Jan 2006 19:54:26 GMT]]></title><description><![CDATA[<p>vielen dank!<br />
<a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7971">@akari</a>, ich werds mir merken <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/971703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/971703</guid><dc:creator><![CDATA[Andy5000]]></dc:creator><pubDate>Fri, 20 Jan 2006 19:54:26 GMT</pubDate></item></channel></rss>