<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Shane711</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sun, 21 Jun 2026 06:35:08 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Compare datagrid cell previous value with c#</title>
            <link>http://forum.lowyat.net/topic/1513511</link>
            <description>Dear all, let me explain how my datagrid work. The datagrid have 10 columns and 21 rows. The datagrid value will be updated every 5 minutes. Actually what I want is to compare the value before 10minutes with the current value which show in the datagrid. The value that I would like to compare is &amp;quot;e.Item.Cells[6]&amp;quot; which name Final_qty. Because of the datagrid is updated every 5 minutes. It is difficult to me to store the value before 10 minutes. So I try the way to only compare the Final_Qty value 5 minutes before and current value. If the value that I compare is the equal. Then {e.Item.Cells[6].BackColor=Color.Blue;}. The problem is, what is the (if statement) should I write? I do not know how to write the comparison between previous value and current value. Please give me a hand if u know. Thanks.&lt;br /&gt;&lt;br /&gt;&amp;#092;&amp;#092;This is the coding that insert into the datagrid.&lt;br /&gt;private void dGridBind()&lt;br /&gt;           {&lt;br /&gt;		string lines= System.Configuration.ConfigurationSettings.AppSettings[&amp;quot;Lines&amp;quot;];&lt;br /&gt;&lt;br /&gt;			if (lines&amp;#33;=null)&lt;br /&gt;			{&lt;br /&gt;			lines=&amp;quot;top &amp;quot; +lines;&lt;br /&gt;			}&lt;br /&gt;			else&lt;br /&gt;			{&lt;br /&gt;				lines=&amp;quot;top 100&amp;quot;;&lt;br /&gt;			}&lt;br /&gt;&lt;br /&gt;			string strSQL=&amp;quot;SELECT &amp;quot;+lines+ &amp;quot; * From PICS_R where 1=1&amp;quot;;&lt;br /&gt;			strSQL+=&amp;quot; and Line_ID like &amp;#39;V%&amp;#39;&amp;quot;; &lt;br /&gt;			strSQL+=&amp;quot;order by Date_Time desc, Line_ID&amp;quot;;&lt;br /&gt;&lt;br /&gt;			SqlDataAdapter sqlAdpt=new SqlDataAdapter(strSQL,sqlConn);&lt;br /&gt;			DataSet ds=new DataSet();&lt;br /&gt;			sqlAdpt.Fill(ds);&lt;br /&gt;			DataGrid1.DataSource=ds;&lt;br /&gt;			DataGrid1.DataBind();&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#092;&amp;#092;Here is the way to compare&lt;br /&gt;private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)&lt;br /&gt;		{		&lt;br /&gt;			float qc1Target=&lt;br /&gt;				float.Parse(System.Configuration.ConfigurationSettings.AppSettings[&amp;quot;QC1Target&amp;quot;]);&lt;br /&gt;			float qc2Target=&lt;br /&gt;				float.Parse(System.Configuration.ConfigurationSettings.AppSettings[&amp;quot;QC2Target&amp;quot;]);&lt;br /&gt;&lt;br /&gt;			lblTarget.Text=&amp;quot;QC1 Target: &amp;quot;+qc1Target.ToString(&amp;quot;0.00%&amp;quot;);&lt;br /&gt;			lblTarget.Text+=&amp;quot;, QC2 Target: &amp;quot;+qc2Target.ToString(&amp;quot;0.00%&amp;quot;);&lt;br /&gt;&lt;br /&gt;			if (e.Item.ItemType==ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem) &lt;br /&gt;			{&lt;br /&gt;				e.Item.Cells[1].Text=e.Item.Cells[1].Text.Substring(5,2)+e.Item.Cells[1].Text.Substring(8,2);&lt;br /&gt;				e.Item.Cells[2].Text=e.Item.Cells[2].Text.Substring(e.Item.Cells[2].Text.Length-4,4);&lt;br /&gt;&lt;br /&gt;				if (float.Parse(e.Item.Cells[4].Text)&amp;lt;qc1Target)&lt;br /&gt;				{&lt;br /&gt;					e.Item.Cells[4].ForeColor=Color.Red;&lt;br /&gt;				}&lt;br /&gt;&lt;br /&gt;e.Item.Attributes.Add(&amp;quot;onmouseover&amp;quot;,&amp;quot;javascript:this.style.cursor=&amp;#39;hand&amp;#39;;oldColor=this.style.backgroundColor;this.style.backgroundColor=newColor;&amp;quot;);&lt;br /&gt;				e.Item.Attributes.Add(&amp;quot;onmouseout&amp;quot;,&amp;quot;javascript:this.style.cursor=&amp;#39;hand&amp;#39;;this.style.backgroundColor=oldColor;&amp;quot;);&lt;br /&gt;			}</description>
            <author>Shane711</author>
            <category>Codemasters</category>
            <pubDate>Wed, 04 Aug 2010 09:02:24 +0800</pubDate>
        </item>
        <item>
            <title>O/D off flashes</title>
            <link>http://forum.lowyat.net/topic/1209674</link>
            <description>Hi,every sifu here...&lt;br /&gt;Can I knw what is O/D off?? It is flashes automatic while I am driving this morning...&lt;br /&gt;I dono what is happening and what cause it flashes...&lt;br /&gt;What should I do for now?? Izit got problem to my car??&lt;br /&gt;could any sifu here can help me??&lt;br /&gt;thx&amp;#33;&amp;#33;</description>
            <author>Shane711</author>
            <category>The Fast &amp;amp; The Furious</category>
            <pubDate>Thu, 29 Oct 2009 09:58:48 +0800</pubDate>
        </item>
        <item>
            <title>Nissan sentra vs toyota vios</title>
            <link>http://forum.lowyat.net/topic/1174364</link>
            <description>I am planning to get a second hand car currently...&lt;br /&gt;I am interested in two car by now... One is toyota vios and another one is nissan sentra...&lt;br /&gt;Many of my fren suggest me to own vios... But the sit behind the vios a bit small if compare to sentra...&lt;br /&gt;I like sentra one style... Very cool if own it and drive it... &lt;br /&gt;But jz scare nissan sentra a lot of problem after I buy second hand one... &lt;br /&gt;And I heard than sentra 1.6 are quite high fuel... Anyone own nissan sentra can let me know bout this?? thx&amp;#33;&amp;#33;&lt;br /&gt;&lt;br /&gt;The price between this two car are almost same...I have budget around 50K...&lt;br /&gt;can own 2004/5 one Vios or Sentra... Jz wondering which I wan to buy...&lt;br /&gt;Wil Nissan Sentra lot prob if second hand?? Wil Nissan Sentra high fuel???&lt;br /&gt;Izit worth to buy Vios?? Low fuel if drive Vios??&lt;br /&gt;Can anybody choose for me?? Or giv me the good point to choose better car... Thanks lot&amp;#33;&amp;#33;&amp;#33;</description>
            <author>Shane711</author>
            <category>The Fast &amp;amp; The Furious</category>
            <pubDate>Fri, 25 Sep 2009 22:18:42 +0800</pubDate>
        </item>
        <item>
            <title>Seagate Crystal Report</title>
            <link>http://forum.lowyat.net/topic/1172984</link>
            <description>Hi all,&lt;br /&gt;&lt;br /&gt;I am facing some problem when I want to print out the photo through crystal report. When I click &amp;#39;Print&amp;#39; button, this error message will appear - &amp;quot; Some links could not be updated because their sources are presently unavailable. &amp;quot; I have try reinstall my crsytal report and update d... But the problem occurs oso... When the error message appears, it just give me to either to choose &amp;#39;OK&amp;#39; or &amp;#39;Links&amp;#39;... But both of this button cant solve my problem too... The photo cant show out in the crystal report... Can anyone help me... urgent... thx a lot&amp;#33;&amp;#33;&amp;#33;</description>
            <author>Shane711</author>
            <category>Codemasters</category>
            <pubDate>Thu, 24 Sep 2009 17:12:17 +0800</pubDate>
        </item>
        <item>
            <title>Second hand vios or jazz?</title>
            <link>http://forum.lowyat.net/topic/1168067</link>
            <description>I wish to get a second hand car currently... Vios and Jazz is my lovely car...&lt;br /&gt;But dono my budget is enuf to own either this two car or not lo...&lt;br /&gt;My budget is bout 50K... hope to own above 04 one jazz...cos jazz is my 1st choice... &lt;br /&gt;But dono worth or not lo... Scare regret choose honda n not toyota lo...&lt;br /&gt;any opinion and comment?? thx&amp;#33;&amp;#33;</description>
            <author>Shane711</author>
            <category>The Fast &amp;amp; The Furious</category>
            <pubDate>Fri, 18 Sep 2009 23:47:21 +0800</pubDate>
        </item>
        <item>
            <title>PC restart itself....(motherboard problem?)</title>
            <link>http://forum.lowyat.net/topic/1158640</link>
            <description>Hi to all,&lt;br /&gt;&lt;br /&gt;My pc dono why this few days sometime got display sometime dont have...&lt;br /&gt;There have sound of beep beep beep beep...I think shld be 5 times... But the sound not too loud...&lt;br /&gt;I dont think so is RAM problem sound... Cos RAM problem sound is more louder... Am I right??&lt;br /&gt;Then I go plug in and out the HD and Graphic card... Sometime can work again... but sometime fail...&lt;br /&gt;Then ytd It can go into the windows already... Always restart itself before WINDOW XP LOADING...&lt;br /&gt;&lt;br /&gt;So I went to bought a new motherboard... At first, I plug into the built-in VGA Graphic card... the pc can work...&lt;br /&gt;But after a moment it restart itself when login to window... Then I power on again...unfortunately I unable to open the pc d... All fun in CPU are work... But dont have display at all...&lt;br /&gt;Can I know what is happening?? Possible is prosessor spoil?? Or graphic card?? Or else Network card?? Or Operating system problem??  Or my new motherboard got problem??&lt;br /&gt;(I have graphic card and network card which are not built in one...)&lt;br /&gt;&lt;br /&gt;Thank you all&amp;#33;&amp;#33;</description>
            <author>Shane711</author>
            <category>Technical Support</category>
            <pubDate>Thu, 10 Sep 2009 10:40:04 +0800</pubDate>
        </item>
    </channel>
</rss>
