<?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>devexpress rows color change | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<atom:link href="https://www.sanaldata.com/e/devexpress-rows-color-change/feed" rel="self" type="application/rss+xml" />
	<link>https://www.sanaldata.com</link>
	<description>Yazılım ve teknoloji üzerine her türlü makaleye ulaşabileceğiniz site</description>
	<lastBuildDate>Sat, 04 Aug 2018 06:29:16 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.sanaldata.com/wp-content/uploads/2016/11/cropped-logo-32x32.png</url>
	<title>devexpress rows color change | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<link>https://www.sanaldata.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Devexpress&#8217;de GridControl Satır Rengini Değiştirme</title>
		<link>https://www.sanaldata.com/devexpressde-gridcontrol-satir-rengini-degistirme</link>
					<comments>https://www.sanaldata.com/devexpressde-gridcontrol-satir-rengini-degistirme#comments</comments>
		
		<dc:creator><![CDATA[Burak]]></dc:creator>
		<pubDate>Fri, 17 Mar 2017 08:53:10 +0000</pubDate>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[devepxress GridControl row color change]]></category>
		<category><![CDATA[devexpress rows color change]]></category>
		<guid isPermaLink="false">https://www.sanaldata.com/?p=331</guid>

					<description><![CDATA[<p>Mmerhaba arkaşlar, devexpress&#8217;de en çok kullanılan bileşen olan GridControl&#8217;da kimi zaman satır arka planın rengini değiştirmemiz gerekebilir.İşte böyle durumlarda aşağıdaki kod satırlarını kullanabilirsiniz.Öncelikle kütüphanemizi yüklüyoruz. [crayon-69f1e1a932a94780568986/] İkinci adım olarak değşken tanımlamamızı yapıyoruz. [crayon-69f1e1a932aa0486280893/] Daha Sonra Buton veya form&#8217;un load kısmına aşağıdaki kod satırımızı ekliyoruz. Burda dikkat etmeniz gereken yer  &#8221; 2 &#8221; yazan yer hangi satırın [&#8230;]</p>
The post <a href="https://www.sanaldata.com/devexpressde-gridcontrol-satir-rengini-degistirme">Devexpress’de GridControl Satır Rengini Değiştirme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></description>
										<content:encoded><![CDATA[<p>Mmerhaba arkaşlar, devexpress&#8217;de en çok kullanılan bileşen olan GridControl&#8217;da kimi zaman satır arka planın rengini değiştirmemiz gerekebilir.İşte böyle durumlarda aşağıdaki kod satırlarını kullanabilirsiniz.Öncelikle kütüphanemizi yüklüyoruz.</p><pre class="urvanov-syntax-highlighter-plain-tag">using DevExpress.XtraGrid.Views.Grid;</pre><p>İkinci adım olarak değşken tanımlamamızı yapıyoruz.</p><pre class="urvanov-syntax-highlighter-plain-tag">Dictionary&lt;DataRow, Color&gt; colors = new Dictionary&lt;DataRow, Color&gt;();</pre><p>Daha Sonra Buton veya form&#8217;un load kısmına aşağıdaki kod satırımızı ekliyoruz.</p>
<p>Burda dikkat etmeniz gereken yer  &#8221; 2 &#8221; yazan yer hangi satırın rengini değiştirmek istiyorsak onu yazıyoruz eğer seçili satırın değiştirmek istiyorsak 2 yerine &#8221;  gridView1.FocusedRowHandle &#8221; kodunu eklemeniz yeterlidir.</p><pre class="urvanov-syntax-highlighter-plain-tag">DataRow dr = gridView1.GetDataRow(2);
            colors[dr] = colorEdit2.Color;
            gridView1.RefreshRow(gridView1.FocusedRowHandle);</pre><p>Ve en son adım olaraksa Gridview Rowstyle eventına aşağıdaki kodu yazıyoruz  böyle değişikliklerimiz aktif olsun</p><pre class="urvanov-syntax-highlighter-plain-tag">if (!gridView1.IsDataRow(e.RowHandle))
                return;
            DataRow dr = gridView1.GetDataRow(e.RowHandle);
            if (colors.ContainsKey(dr))
            {
                e.Appearance.BackColor = colors[dr];
            }</pre><p>Tekrar görüşünceye kadar bol kodlu günler.</p>The post <a href="https://www.sanaldata.com/devexpressde-gridcontrol-satir-rengini-degistirme">Devexpress’de GridControl Satır Rengini Değiştirme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.sanaldata.com/devexpressde-gridcontrol-satir-rengini-degistirme/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
