<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yılmaz Yavuz &#187; gridcontrol</title>
	<atom:link href="http://www.yilmazyavuz.com/yyblog/index.php/tag/gridcontrol/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yilmazyavuz.com/yyblog</link>
	<description>yazılım üzerine taze taze</description>
	<lastBuildDate>Mon, 14 Feb 2011 15:35:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Devexpress Gridcontrol &#8211; Parent Child with entity objects</title>
		<link>http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/</link>
		<comments>http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 15:28:46 +0000</pubDate>
		<dc:creator>Yılmaz Yavuz</dc:creator>
				<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[Csharp]]></category>
		<category><![CDATA[Developer Express]]></category>
		<category><![CDATA[devex]]></category>
		<category><![CDATA[gridcontrol]]></category>
		<category><![CDATA[xtragridcontrol]]></category>

		<guid isPermaLink="false">http://www.yilmazyavuz.com/yyblog/?p=512</guid>
		<description><![CDATA[<p>Firstly I created two simple entity classes named Article and Comment :</p>
<p>Article.cs :</p>


using System.Collections.Generic;

namespace DevexMasterChildSample
{
public class Article
{
public string Subject { get; set; }
public string Body { get; set; }
public List&#60;Comment&#62; CommentList { get; set; }

}
}

<p>Comment.cs</p>


using System;

namespace DevexMasterChildSample
{
public class Comment
{
public string Author { get; set; }
public string Message { get; set; }
public DateTime CommentDate { get; set; <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/">Devexpress Gridcontrol &#8211; Parent Child with entity objects</a></span>]]></description>
			<content:encoded><![CDATA[<p>Firstly I created two simple entity classes named Article and Comment :</p>
<p><strong>Article.cs :</strong></p>
<pre class="brush: csharp;">

using System.Collections.Generic;

namespace DevexMasterChildSample
{
public class Article
{
public string Subject { get; set; }
public string Body { get; set; }
public List&lt;Comment&gt; CommentList { get; set; }

}
}
</pre>
<p><strong>Comment.cs</strong></p>
<pre class="brush: csharp;">

using System;

namespace DevexMasterChildSample
{
public class Comment
{
public string Author { get; set; }
public string Message { get; set; }
public DateTime CommentDate { get; set; }

}
}
</pre>
<p><strong>Then I  Added a simple Windows form file to my project named Form1.cs and in Design Mode I draged a Devexpress GridControl to my form and changed it&#8217;s size to fit my form.</strong></p>
<p><strong>After that I created a new level for Gridview1 shown below</strong></p>
<p><strong><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/b17bbed3-84ff-4ce3-9084-e5ffcdf65bb6/02.14.2011-17.14.01.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/b17bbed3-84ff-4ce3-9084-e5ffcdf65bb6/02.14.2011-17.14.01.png" border="0" alt="" width="580" height="205" /></a></strong></p>
<p><strong><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/9eed5e1c-0c40-4f96-904d-04b1d10247f9/02.14.2011-17.15.21.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/9eed5e1c-0c40-4f96-904d-04b1d10247f9/02.14.2011-17.15.21.png" border="0" alt="" width="583" height="245" /></a></strong></p>
<p><strong>Then I renamed the <span style="text-decoration: underline;">Level</span> to <span style="color: #ff0000;"><span style="text-decoration: underline;">CommentList</span></span> it must be exactly the same with Master Object&#8217;s child collection property name. In this case it is CommentList on Article object<br />
</strong></p>
<p><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/f46de44d-07ba-477f-934b-ac55eee91731/02.14.2011-17.17.47.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/f46de44d-07ba-477f-934b-ac55eee91731/02.14.2011-17.17.47.png" border="0" alt="" width="355" height="187" /></a></p>
<p><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/ba4228a6-e510-4371-bd87-21da92ceafdf/02.14.2011-17.20.32.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/ba4228a6-e510-4371-bd87-21da92ceafdf/02.14.2011-17.20.32.png" border="0" alt="" width="384" height="190" /></a></p>
<p><strong><strong>Form1.cs</strong></strong></p>
<pre class="brush: csharp;">

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace DevexMasterChildSample
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
List&lt;Article&gt; articles = new List&lt;Article&gt;();
articles.Add(new Article
{
Body = &quot;Bu yazı devexpress gridcontrolü anlatmaktadır.&quot;,
CommentList =
new List&lt;Comment&gt;
{
new Comment
{
Author = &quot;Erdem&quot;,
CommentDate = DateTime.Now,
Message = &quot;Yazınız güzel olmuş.&quot;
}
},
Subject = &quot;Devexpress GridControl master Child Örnek&quot;
});
articles.Add(new Article
{
Body = &quot;Bu yazı devexpress treeview anlatmaktadır.&quot;,
CommentList =
new List&lt;Comment&gt;
{
new Comment
{
Author = &quot;Alkan&quot;,
CommentDate = DateTime.Now,
Message = &quot;Yazınız pek anlaşılır olmamış.&quot;
}
},
Subject = &quot;Devexpress Treeview Drag-drop Örnek&quot;
});

gridControl1.DataSource = articles;

}
}
}
</pre>
<p><strong>Result : </strong><br />
<a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/17ad54f1-5259-4379-ae68-1edd03ec2879/02.14.2011-17.27.55.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/17ad54f1-5259-4379-ae68-1edd03ec2879/02.14.2011-17.27.55.png" width="705" height="503" border="0" /></a></p>
<p><a href="http://www.yilmazyavuz.com/Samples/DevexMasterChildSample.zip">You can download the sample code here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Devexpress GridControl &#8211; ParentChild gösterimi ve birkaç özelliği</title>
		<link>http://www.yilmazyavuz.com/yyblog/index.php/2009/07/devexpress-gridcontrol-parentchild-gosterimi-ve-birkac-ozelligi/</link>
		<comments>http://www.yilmazyavuz.com/yyblog/index.php/2009/07/devexpress-gridcontrol-parentchild-gosterimi-ve-birkac-ozelligi/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 04:40:05 +0000</pubDate>
		<dc:creator>Yılmaz Yavuz</dc:creator>
				<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[autofilterrow]]></category>
		<category><![CDATA[child]]></category>
		<category><![CDATA[dataset]]></category>
		<category><![CDATA[filter editor]]></category>
		<category><![CDATA[gridcontrol]]></category>
		<category><![CDATA[groupbox]]></category>
		<category><![CDATA[newitemrow]]></category>
		<category><![CDATA[parent]]></category>
		<category><![CDATA[simple button]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[xtragridcontrol]]></category>

		<guid isPermaLink="false">http://www.yilmazyavuz.com/yyblog/?p=345</guid>
		<description><![CDATA[<p></p>
<p>Video Devexpress in en çok kullanılan kontrölü olan GridControl ile Müşteri-Satışlar tablolarının master-child gösteriminin en baştan itibaren nasıl yapılacağını anlatmaktadır. Ayrıca grid üzerinden filtreleme, yeni kayıt girme, gruplama gibi fonksiyonlarına <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.yilmazyavuz.com/yyblog/index.php/2009/07/devexpress-gridcontrol-parentchild-gosterimi-ve-birkac-ozelligi/">Devexpress GridControl &#8211; ParentChild gösterimi ve birkaç özelliği</a></span>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.yilmazyavuz.com/yyblog/wp-content/plugins/flash-video-player/default_video_player.gif" /></p>
<p>Video Devexpress in en çok kullanılan kontrölü olan GridControl ile Müşteri-Satışlar tablolarının master-child gösteriminin en baştan itibaren nasıl yapılacağını anlatmaktadır. Ayrıca grid üzerinden filtreleme, yeni kayıt girme, gruplama gibi fonksiyonlarına biraz değinilmiştir.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yilmazyavuz.com/yyblog/index.php/2009/07/devexpress-gridcontrol-parentchild-gosterimi-ve-birkac-ozelligi/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Devexpress &#8211; XtraGrid Focused Row</title>
		<link>http://www.yilmazyavuz.com/yyblog/index.php/2009/06/devexpress-xtragrid-focused-row/</link>
		<comments>http://www.yilmazyavuz.com/yyblog/index.php/2009/06/devexpress-xtragrid-focused-row/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 12:37:12 +0000</pubDate>
		<dc:creator>Yılmaz Yavuz</dc:creator>
				<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[focused]]></category>
		<category><![CDATA[gridcontrol]]></category>

		<guid isPermaLink="false">http://www.yilmazyavuz.com/yyblog/index.php/2009/06/devexpress-xtragrid-focused-row/</guid>
		<description><![CDATA[<p>GridControl üzerindeki mainview iniz bir GridView ise ve o anda seçili (Focused) kayda erişmek istiyorsanız. Şu şekilde erişebilirsiniz:</p>

BenimEntityTipim gel = ((DevExpress.XtraGrid.Views.Grid.GridView)gridControl1.MainView).GetFocusedRow <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.yilmazyavuz.com/yyblog/index.php/2009/06/devexpress-xtragrid-focused-row/">Devexpress &#8211; XtraGrid Focused Row</a></span>]]></description>
			<content:encoded><![CDATA[<p>GridControl üzerindeki mainview iniz bir GridView ise ve o anda seçili (Focused) kayda erişmek istiyorsanız. Şu şekilde erişebilirsiniz:</p>
<pre class="brush: csharp;">
BenimEntityTipim gel = ((DevExpress.XtraGrid.Views.Grid.GridView)gridControl1.MainView).GetFocusedRow as BenimEntityTipim;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yilmazyavuz.com/yyblog/index.php/2009/06/devexpress-xtragrid-focused-row/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

