<?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[beim datagrid spaltenzahl manipulieren]]></title><description><![CDATA[<p>So, wieder mal viele Stunden sinnlose Suche.<br />
Ich hoffe jemand kann mir den winzigkleinen Tip geben, den ich brauch.</p>
<p>Habe ein Datagrid, das auf die DB zugreift und möchte die Spaltenanzahl manipulieren, kriegs aber einfach nicht hin. Standardmässig sind ja schon zwei da, das wars dann aber.</p>
<p>Solche Tipps habe ich zwar gefunden:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=76618&amp;highlight=datagrid+manuell" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=76618&amp;highlight=datagrid+manuell</a><br />
kann aber mit diesen Klassen irgendwie nix anfangen. Denke mal, das liegt daran, dass ich mit VC++ 6.0 arbeite und nicht mit Net.</p>
<p>Was tun?</p>
<p>Danke im v o r r a u s</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/82259/beim-datagrid-spaltenzahl-manipulieren</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 19:14:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/82259.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Aug 2004 19:29:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Mon, 09 Aug 2004 19:29:23 GMT]]></title><description><![CDATA[<p>So, wieder mal viele Stunden sinnlose Suche.<br />
Ich hoffe jemand kann mir den winzigkleinen Tip geben, den ich brauch.</p>
<p>Habe ein Datagrid, das auf die DB zugreift und möchte die Spaltenanzahl manipulieren, kriegs aber einfach nicht hin. Standardmässig sind ja schon zwei da, das wars dann aber.</p>
<p>Solche Tipps habe ich zwar gefunden:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=76618&amp;highlight=datagrid+manuell" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=76618&amp;highlight=datagrid+manuell</a><br />
kann aber mit diesen Klassen irgendwie nix anfangen. Denke mal, das liegt daran, dass ich mit VC++ 6.0 arbeite und nicht mit Net.</p>
<p>Was tun?</p>
<p>Danke im v o r r a u s</p>
]]></description><link>https://www.c-plusplus.net/forum/post/578582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/578582</guid><dc:creator><![CDATA[guelling]]></dc:creator><pubDate>Mon, 09 Aug 2004 19:29:23 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Mon, 09 Aug 2004 20:54:00 GMT]]></title><description><![CDATA[<p>boar ist das frustrierend.<br />
im afx-testcontainer kann man das ja alles wunderbar einstellen.<br />
wenn ich wenigstens wüsste, wo die zwei standardspalten deklariert sind. ist aber auch nicht auffindbar.</p>
<p>beim hierarchical flexgrid kann man das ja alles super einstellen. gibt es da vielleicht ne einfache möglichkeit an schreibrechte ranzukommen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/578632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/578632</guid><dc:creator><![CDATA[guelling]]></dc:creator><pubDate>Mon, 09 Aug 2004 20:54:00 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Wed, 11 Aug 2004 07:35:33 GMT]]></title><description><![CDATA[<p>liebe moderatoren, liebe mfc-viel-besser-als-ich-könner,<br />
kann mir denn keiner irgendetwas sagen?<br />
hab ich mich unklar ausgedrückt?<br />
ist es zu leicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/579605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/579605</guid><dc:creator><![CDATA[guelling]]></dc:creator><pubDate>Wed, 11 Aug 2004 07:35:33 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Wed, 11 Aug 2004 18:44:12 GMT]]></title><description><![CDATA[<p>hi, bin im mom noch auf der arbeit, und kann leider noch nicht, bin aber ca.<br />
22:30 daheim und schau dann mal nach. ich glaube das hatte ich schonmal gemacht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/580340</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/580340</guid><dc:creator><![CDATA[Bummsfallera]]></dc:creator><pubDate>Wed, 11 Aug 2004 18:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Wed, 11 Aug 2004 21:11:01 GMT]]></title><description><![CDATA[<p>hallo, hab mal nachgeschaut...<br />
meinst du sowas hier?</p>
<pre><code class="language-cpp">m_deinemembervariable.InsertColumn(0,&quot;Spalte1&quot;,LVCFMT_LEFT,25,-1);
	m_deinemembervariable.InsertColumn(1,&quot;Spalte2&quot;,LVCFMT_LEFT,100,-1);
	m_deinemembervariable.InsertColumn(2,&quot;Spalte3&quot;,LVCFMT_LEFT,170,-1);
	m_deinemembervariable.InsertColumn(3,&quot;Spalte4&quot;,LVCFMT_LEFT,300,-1);
	m_deinemembervariable.InsertColumn(4,&quot;Spalte5&quot;,LVCFMT_LEFT,150,-1);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/580457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/580457</guid><dc:creator><![CDATA[Bummsfallera]]></dc:creator><pubDate>Wed, 11 Aug 2004 21:11:01 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Thu, 12 Aug 2004 13:03:53 GMT]]></title><description><![CDATA[<p>Genau so etwas suche ich.<br />
Leider ist InsertColumn kein Element von CDatagrid.</p>
<p>Wie gesagt, ich arbeite mit VC++ 6.0 und habe ganz einfach ein DataGrid mit seinen Wrapper-Klassen eingefügt (Microsoft DataCombo Control, version 6.0 (OLEDB)).</p>
<p>Folgende Memberfunktionen hat CDatagrid:</p>
<pre><code class="language-cpp">long GetAddNewMode();
	BOOL GetAllowAddNew();
	void SetAllowAddNew(BOOL bNewValue);
	BOOL GetAllowArrows();
	void SetAllowArrows(BOOL bNewValue);
	BOOL GetAllowDelete();
	void SetAllowDelete(BOOL bNewValue);
	BOOL GetAllowRowSizing();
	void SetAllowRowSizing(BOOL bNewValue);
	BOOL GetAllowUpdate();
	void SetAllowUpdate(BOOL bNewValue);
	long GetAppearance();
	void SetAppearance(long nNewValue);
	long GetApproxCount();
	unsigned long GetBackColor();
	void SetBackColor(unsigned long newValue);
	VARIANT GetBookmark();
	void SetBookmark(const VARIANT&amp; newValue);
	long GetBorderStyle();
	void SetBorderStyle(long nNewValue);
	CString GetCaption();
	void SetCaption(LPCTSTR lpszNewValue);
	short GetCol();
	void SetCol(short nNewValue);
	BOOL GetColumnHeaders();
	void SetColumnHeaders(BOOL bNewValue);
	BOOL GetCurrentCellModified();
	void SetCurrentCellModified(BOOL bNewValue);
	BOOL GetCurrentCellVisible();
	void SetCurrentCellVisible(BOOL bNewValue);
	BOOL GetDataChanged();
	void SetDataChanged(BOOL bNewValue);
	LPUNKNOWN GetDataSource();
	void SetRefDataSource(LPUNKNOWN newValue);
	CString GetDataMember();
	void SetDataMember(LPCTSTR lpszNewValue);
	float GetDefColWidth();
	void SetDefColWidth(float newValue);
	BOOL GetEditActive();
	void SetEditActive(BOOL bNewValue);
	BOOL GetEnabled();
	void SetEnabled(BOOL bNewValue);
	CString GetErrorText();
	COleFont GetFont();
	void SetRefFont(LPDISPATCH newValue);
	unsigned long GetForeColor();
	void SetForeColor(unsigned long newValue);
	VARIANT GetFirstRow();
	void SetFirstRow(const VARIANT&amp; newValue);
	COleFont GetHeadFont();
	void SetRefHeadFont(LPDISPATCH newValue);
	float GetHeadLines();
	void SetHeadLines(float newValue);
	long GetHWnd();
	long GetHWndEditor();
	short GetLeftCol();
	void SetLeftCol(short nNewValue);
	long GetMarqueeStyle();
	void SetMarqueeStyle(long nNewValue);
	BOOL GetRecordSelectors();
	void SetRecordSelectors(BOOL bNewValue);
	BOOL GetRightToLeft();
	void SetRightToLeft(BOOL bNewValue);
	short GetRow();
	void SetRow(short nNewValue);
	long GetRowDividerStyle();
	void SetRowDividerStyle(long nNewValue);
	float GetRowHeight();
	void SetRowHeight(float newValue);
	long GetScrollBars();
	void SetScrollBars(long nNewValue);
	short GetSelEndCol();
	void SetSelEndCol(short nNewValue);
	long GetSelLength();
	void SetSelLength(long nNewValue);
	long GetSelStart();
	void SetSelStart(long nNewValue);
	short GetSelStartCol();
	void SetSelStartCol(short nNewValue);
	CString GetSelText();
	void SetSelText(LPCTSTR lpszNewValue);
	short GetSplit();
	void SetSplit(short nNewValue);
	BOOL GetTabAcrossSplits();
	void SetTabAcrossSplits(BOOL bNewValue);
	long GetTabAction();
	void SetTabAction(long nNewValue);
	CString GetText();
	void SetText(LPCTSTR lpszNewValue);
	short GetVisibleCols();
	short GetVisibleRows();
	BOOL GetWrapCellPointer();
	void SetWrapCellPointer(BOOL bNewValue);
	CStdDataFormatsDisp GetDataFormats();
	CPicture CaptureImage();
	void ClearSelCols();
	void ClearFields();
	short ColContaining(float X);
	CColumns GetColumns();
	VARIANT GetBookmark(long RowNum);
	void HoldFields();
	void ReBind();
	void Refresh();
	VARIANT RowBookmark(short RowNum);
	short RowContaining(float Y);
	float RowTop(short RowNum);
	void Scroll(long Cols, long Rows);
	CSelBookmarks GetSelBookmarks();
	short SplitContaining(float X, float Y);
	CSplits GetSplits();
</code></pre>
<p>Die einzige Funktion die nach was aussieht ist SetCol, doch die sagt nur, welche Spalte markiert sein soll.</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/580985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/580985</guid><dc:creator><![CDATA[guelling]]></dc:creator><pubDate>Thu, 12 Aug 2004 13:03:53 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Thu, 12 Aug 2004 15:45:17 GMT]]></title><description><![CDATA[<p>ich hab die lösung für dich gefunden (glaub ich) <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="😉"
    /><br />
Schaust du mal hier:</p>
<p><a href="http://www.it-faq.pl/mskb/225/065.HTM" rel="nofollow">http://www.it-faq.pl/mskb/225/065.HTM</a></p>
<p>Hau rein und sag bescheid obs geklappt hat,</p>
<p>vg, Marco!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/581145</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/581145</guid><dc:creator><![CDATA[Bummsfallera]]></dc:creator><pubDate>Thu, 12 Aug 2004 15:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Thu, 12 Aug 2004 17:55:48 GMT]]></title><description><![CDATA[<p>Das ist die Lösung, die ich gesucht hab.<br />
Ca. eine Stunde bevor ich das hier gelesen hab, bin ich zwar mit Hilfe eines Freundes doch noch darauf gekommen, aber trotzdem: danke danke danke.</p>
<p>Die Seite beantwortet auch noch eine andere Frage:</p>
<p>Microsoft DataGrid version 6.0 does not support modifications to the columns of Grid at design time when using it in Visual C++.</p>
<p>Note that the &quot;Edit&quot; option for making changes to the columns of DataGrid at design time is absent. This option is available in Visual Basic 6.0.</p>
<p>Echt traurig, aber war.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/581232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/581232</guid><dc:creator><![CDATA[guelling]]></dc:creator><pubDate>Thu, 12 Aug 2004 17:55:48 GMT</pubDate></item><item><title><![CDATA[Reply to beim datagrid spaltenzahl manipulieren on Thu, 12 Aug 2004 18:01:36 GMT]]></title><description><![CDATA[<p>No problem, u r welcome.<br />
bin ja schliesslich auch froh wenn mir mal geholfen wird <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/581235</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/581235</guid><dc:creator><![CDATA[Bummsfallera]]></dc:creator><pubDate>Thu, 12 Aug 2004 18:01:36 GMT</pubDate></item></channel></rss>