<?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[WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה.]]></title><description><![CDATA[<p dir="auto">הגדרתי את AutoGenerateColumns ל "True"<br />
וזה עובד מצויין אבל רק כאשר יש באוסף לפחות רשומה אחת אבל אם אין שום רשומה הדטה-גריד לא נותן אפשרות להוסיף את הראשון.<br />
מה אפשר לעשות?<br />
אני רוצה שזה יהיה כמו באקסס שגם אם אין רשומות בטבלה תמיד אפשר להוסיף חדש.</p>
<p dir="auto">תודה לכולם.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב24/12/2013 14:26 (+02:00)</em></p>
]]></description><link>https://tchumim.com/topic/214/wpf-datagrid-עם-autogeneratecolumns-שורה-חדשה-כשהרשימה-ריקה</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 02:00:41 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/214.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jan 2018 10:34:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:54 GMT]]></title><description><![CDATA[<p dir="auto">בניתי, ניסיתי, ואז העתקתי לפה. זה מאוד מוזר אבל איך אפשר בכלל להתחיל לחשוב על הסיבה?</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב25/12/2013 18:53 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1186</link><guid isPermaLink="true">https://tchumim.com/post/1186</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:54 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:54 GMT]]></title><description><![CDATA[<p dir="auto">אתה נסית בדיוק את הקוד שהבאת? בלי שום שינוי?</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב25/12/2013 18:49 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1185</link><guid isPermaLink="true">https://tchumim.com/post/1185</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:54 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:53 GMT]]></title><description><![CDATA[<p dir="auto">טוב, אז כמו שאצלי משום מה זה לא עובד כך גם יכול לא לעבוד אצל איזה לקוח ואז מה נעשה?<br />
לכן כדי לא להיתקע אני אכתוב בעצמי פונקציה AutoGenerateColumns ושלום על ישראל.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב25/12/2013 17:55 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1184</link><guid isPermaLink="true">https://tchumim.com/post/1184</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:53 GMT]]></title><description><![CDATA[<p dir="auto">עובד ידידי גם ב4.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב25/12/2013 16:33 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1183</link><guid isPermaLink="true">https://tchumim.com/post/1183</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:53 GMT]]></title><description><![CDATA[<p dir="auto">איזה פרימוורק מותקן אצלך? כי אצלי מותקן 4 ולא 4.5</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב25/12/2013 15:56 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1182</link><guid isPermaLink="true">https://tchumim.com/post/1182</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:53 GMT]]></title><description><![CDATA[<p dir="auto">ממש מפליא. אצלי זה עובד פקפרקט.<br />
העתקתי את הקוד בדיוק ככתבו וכלשונו הXAML+קוד ויש שורה ראשונה ריקה מוכנה להוספה.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב25/12/2013 15:50 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1181</link><guid isPermaLink="true">https://tchumim.com/post/1181</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:52 GMT]]></title><description><![CDATA[<pre><code>Imports System.Collections.ObjectModel

Class MainWindow
    Dim coll As New ObservableCollection(Of Person)

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        DataContext = coll
        'רק אם נפעיל את השורה הבאה יהיה אפשר להזין את הטבלה
        ' אלא שאז יופיע מראש 2 שורות
        ' ואין בחירה ביד המשתמש להשאיר את הטבלה ללא רשומות
        ' coll.Add(New Person)
    End Sub

End Class

Public Class Person
    Private _Name As String
    Public Property Name() As String
        Get
            Return _Name
        End Get
        Set(value As String)
            _Name = value
        End Set
    End Property

    Private _LastName As String
    Public Property LastName() As String
        Get
            Return _LastName
        End Get
        Set(value As String)
            _LastName = value
        End Set
    End Property
End Class


&lt;Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525"&gt;
    &lt;Grid&gt;
        &lt;DataGrid AutoGenerateColumns="True" 
                  Height="289" HorizontalAlignment="Left"
                  Margin="10,10,0,0" Name="DataGrid1" 
                  VerticalAlignment="Top" Width="481" 
                  ItemsSource="{Binding}"/&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre>
<p dir="auto">תודה רבה!</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב24/12/2013 19:01 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1180</link><guid isPermaLink="true">https://tchumim.com/post/1180</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:52 GMT]]></title><description><![CDATA[<p dir="auto">אנא העלה את הXAML ו/או קוד רלוונטי.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב24/12/2013 17:11 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1179</link><guid isPermaLink="true">https://tchumim.com/post/1179</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:52 GMT]]></title><description><![CDATA[<p dir="auto">אני משתמש ב ObservableCollection שהוא גם עם סוגריים וOF<br />
אבל בכ''ז יש את הבעיה.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב24/12/2013 16:59 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1178</link><guid isPermaLink="true">https://tchumim.com/post/1178</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to WPF DataGrid עם AutoGenerateColumns שורה חדשה כשהרשימה ריקה. on Mon, 29 Jan 2018 10:34:52 GMT]]></title><description><![CDATA[<p dir="auto">איך הגדרת את הItemSource, למערך?<br />
אם כן נסה במקום זאת לשים בו List גנרי (עם סוגריים והמילה Of).</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב24/12/2013 16:49 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/1177</link><guid isPermaLink="true">https://tchumim.com/post/1177</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:34:52 GMT</pubDate></item></channel></rss>