473,575 Members | 3,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Set row color of a datagrid when more than one datagrid on a form

I am using visual studio 2005 to develop a form using c#

I have 3 datagrids on one form.

I can set the row color based on a certain value in a column. However this
color applies to all 3 datagrida. I would like to set it so that

if value of column 3 in datagrid 1 is < 100 set to red, if = 100 set to green
if value of column 3 in datagrid 2 is < 90 set to red, if >= 90 set to green
if value of column 3 in datagrid 3is < 80 set to red, if >= 80set to green

No matter how I write my code I cannot seem to get the coloring to apply to
just one datagrid

My code is below:

<%@ Page Language="C#" %>
<%@ Import Namespace="Syst em.Drawing" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<script runat="server">

protected void GridView1_Selec tedIndexChanged (object sender, EventArgs e)
{

}

protected void GridView1_RowDa taBound(object sender,
GridViewRowEven tArgs e)
{
if (e.Row.RowType == DataControlRowT ype.DataRow)
{
if (Decimal.Parse( e.Row.Cells[3].Text) < 100)
e.Row.Cells[3].BackColor = Color.IndianRed ;
else
e.Row.Cells[3].BackColor = Color.MediumSea Green;
}
}
protected void GridView3_RowDa taBound(object sender, GridViewRowEven tArgs e)
{
if (e.Row.RowType == DataControlRowT ype.DataRow)
{
if (Decimal.Parse( e.Row.Cells[3].Text) < 70)
e.Row.Cells[3].BackColor = Color.IndianRed ;
else
e.Row.Cells[3].BackColor = Color.MediumSea Green;
}

}
protected void Page_Load(objec t sender, EventArgs e)
{

}

protected void GridView2_Selec tedIndexChanged (object sender, EventArgs e)
{

}

</script>

<html><!-- InstanceBegin template="/Templates/supportstats.dw t"
codeOutsideHTML IsLocked="false " -->
<head>
<!-- InstanceBeginEd itable name="doctitle" -->
<title>HKS Medical Information Systems</title>
<!-- InstanceEndEdit able -->
<link rel="stylesheet " type="text/css" href="styles.cs s">
<script language="JavaS cript" src="common.js" type="text/JavaScript"></script>
<!-- InstanceBeginEd itable name="head" --><!-- InstanceEndEdit able --><!--
InstanceParam name="NavAboutU sON" type="boolean" value="false" --><!--
InstanceParam name="NavSoftwa reSolutionsON" type="boolean" value="false"
--><!-- InstanceParam name="NavServic esON" type="boolean" value="false"
--><!-- InstanceParam name="NavSuppor tON" type="boolean" value="false"
--><!-- InstanceParam name="NavNewsON " type="boolean" value="false" --><!--
InstanceParam name="NavContac tON" type="boolean" value="false" -->
<script language="JavaS cript">
function breadCrumbs(bas e,delStr,defp,c Style,tStyle,dS tyle,nl) { // by Paul
Davis - http://www.kaosweaver.com
loc=window.loca tion.toString() ;subs=loc.subst r(loc.indexOf(b ase)+base.lengt h+1).split("/");
document.write( '<a href="'+getLoc( subs.length-1)+defp+'"
class="'+cStyle +'">Home</a '+'<span class="'+dStyle +'">'+delStr+ '</span');
a=(loc.indexOf( defp)==-1)?1:2;for (i=0;i<(subs.le ngth-a);i++) {
subs[i]=makeCaps(unesc ape(subs[i]));
document.write( '<a href="'+getLoc( subs.length-i-2)+defp+'"
class="'+cStyle +'">'+subs[i]+'</a '+'<span
class="'+dStyle +'">'+delStr+ '</span');}
if (nl==1) document.write( "<br>");documen t.write('<span
class="'+tStyle +'">'+document. title+'</span>');
}
function makeCaps(a) {
g=a.split(' ');for (l=0;l<g.length ;l++)
g[l]=g[l].toUpperCase(). slice(0,1)+g[l].slice(1);
return g.join(" ");
}
function getLoc(c) {
var d="";if (c>0) for (k=0;k<c;k++) d=d+"../"; return d;
}
</script>
</head>

<body link="#6F96C6" alink="#6F96C6" vlink="#6F96C6" >

<table width="1000" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="224"><a href="http://www.hksys.com"> <img
src="images/hdr_logo.gif" alt="HKS Medical Information Systems" width="187"
height="79" border="0"></a></td>
<td width="776"><!-- InstanceBeginEd itable name="Header" --><img
src="images/hdr_home.jpg" alt="" height="79" style="width: 811px"><!--
InstanceEndEdit able --></td>
</tr>
</table>
<table width="1000" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="25" bgcolor="#6F96C 6"</td>
<td height="25" align="RIGHT" bgcolor="#6F96C 6"><table width="990"
height="23" border="0" cellpadding="0" cellspacing="0" >
<form action="search/search.pl" method="GET" name="SearchSit e">
<input type="hidden" name="p" value="1" /><input type="hidden"
name="lang" value="en" /><input type="hidden" name="include" value=""
/><input type="hidden" name="exclude" value="" /><input type="hidden"
name="penalty" value="0" /><input type="HIDDEN" name="mode" value="any">

</form>
</table></td>
</tr>
<tr>
<td height="8" colspan="2"><im g src="images/spacer.gif" width="1"
height="8"></td>
</tr>
</table>
<table width="996" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="1000" valign="TOP"><t able width="1000" border="0"
cellpadding="0" cellspacing="0" bgcolor="#A4A4A 5">
<tr>
<td height="1" colspan="3"><im g src="images/spacer.gif" width="1"
height="1"></td>
</tr>
<tr>

<td width="1000" bgcolor="#FFFFF F"><table width="100%" border="0"
cellpadding="0" cellspacing="0" >
<tr>
<td width="100%" bgcolor="#6F96C 6"><!-- InstanceBeginEd itable
name="PageTitle " --><span class="pageTitl e">Support SLA
Compliance </span><!-- InstanceEndEdit able --></td>
</tr>
<tr>
<td><table width="1000" border="0" cellpadding="0"
cellspacing="0" >
<tr>

<td width="1000"><!-- InstanceBeginEd itable
name="PageConte nt" -->
<form id="form1" runat="server">
<div>
<h1>
HKS Support Statistics</h1>
<p>
Click Links for more detail,
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink1 " runat="server"
NavigateUrl="~/priority1-main.aspx">Prio rity 1 </asp:HyperLink>
Issues Last Updated:</span>
</p>
<p>
<asp:HyperLin k ID="HyperLink4 " runat="server"
NavigateUrl="~/priority1-graph.aspx"
Target="_blank" >Graph</asp:HyperLink</p>
<p>
<asp:SqlDataSou rce ID="SqlDataSour ce1" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
Number_of_ticke ts_opened, Number_of_ticke ts_closed_withi n_24hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority1 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority1 AS Priority1_1))

"></asp:SqlDataSour ce>
<asp:GridView ID="GridView1" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource1" Font-Names="Arial"
ForeColor="#333 333" GridLines="None "
OnSelectedIndex Changed="GridVi ew1_SelectedInd exChanged" >
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld DataField="Numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "Number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_c losed_within_24 hrs" HeaderText="# of Issues
Resolved Within 24hrs"

SortExpression= "Number_of_tick ets_closed_with in_24hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed within
SLAS" HeaderText="% of Issues Resolved Within SLAs"
SortExpression= "% of Tickets Closed within SLAS" />
</Columns>
</asp:GridView>
</p>
<p>
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink2 " runat="server"
NavigateUrl="~/priority2-main.aspx">Prio rity 2</asp:HyperLinkIs sues Last
Updated:</span></p>
<p>
<span style="font-family: Arial"<asp:Hype rLink ID="HyperLink5 "
runat="server" NavigateUrl="~/priority2-graph.aspx"
Target="_blank" >Graph</asp:HyperLink>
<asp:SqlDataSou rce ID="SqlDataSour ce2" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
Number_of_ticke ts_opened, Number_of_ticke ts_closed_withi n_48hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority2 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority2 AS Priority2_1))
"></asp:SqlDataSour ce>
<asp:GridView ID="GridView2" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource2" ForeColor="#333 333"
GridLines="None " OnSelectedIndex Changed="GridVi ew2_SelectedInd exChanged">
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld DataField="Numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "Number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_c losed_within_48 hrs" HeaderText="# of Issues
Resolved Within 48hrs"

SortExpression= "Number_of_tick ets_closed_with in_48hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed
within SLAS" HeaderText="% of Issues Resolved Within SLAS"
SortExpression= "% of Tickets Closed within SLAS"
/>
</Columns>
</asp:GridView>
</span>
</p>
<p>
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink3 " runat="server"
NavigateUrl="~/priority3-main.aspx">Prio rity 3</asp:HyperLink>
Issues Last Updated:</span></p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink6 " runat="server"
NavigateUrl="~/priority3-graph.aspx"
Target="_blank" >Graph</asp:HyperLink></span</p>
<p>
<span style="font-family: Arial">
<asp:SqlDataSou rce ID="SqlDataSour ce3" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
number_of_ticke ts_opened, number_of_ticke ts_closed_withi n_120hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority3 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority3 AS Priority3_1))"> </asp:SqlDataSour ce>
<asp:GridView ID="GridView3" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource3" ForeColor="#333 333"
GridLines="None ">
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld DataField="numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="numb er_of_tickets_c losed_within_12 0hrs" HeaderText="# of Issues
Resolved Within 200hrs"

SortExpression= "number_of_tick ets_closed_with in_120hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed
within SLAS" HeaderText="% of Issues Resolved Within SLAs"
SortExpression= "% of Tickets Closed within SLAS"
/>
</Columns>
</asp:GridView>
</span>
</p>

</div>
</form>
<!-- InstanceEndEdit able --></td>

</tr>
</table></td>
</tr>
</table></td>
<td width="1"><img src="images/spacer.gif" width="1"
height="1"></td>
</tr>
<tr>
<td height="1" colspan="3"><im g src="images/spacer.gif" width="1"
height="1"></td>
</tr>
</table></td>
</tr>
</table>
<table width="1000" border="0" cellpadding="8" cellspacing="0" >
<tr>
<td width="1000" align="CENTER" class="footer"> © 2006 HKS Medical
Information
Systems | <a href="http://web1.hksys.com/sw/" target="_blank"
class="footerLi nk">User
Support</a| <a href="http://www.hksys.com/admin/" target="_blank"
class="footerLi nk">Client
Login</a| <a href="default.h tm" class="footerLi nk">Home</a></td>
</tr>
<tr>
<td bgcolor="#6F96C 6"><img src="images/spacer.gif" width="1" height="10"
alt=""></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>

Sep 26 '06 #1
2 3431
Mike,

Have you considered creating a subclass of the data grid and exposing a
property which has the threshold for the value in column three? It might
make things a little easier for you.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike Baugh" <Mi*******@disc ussions.microso ft.comwrote in message
news:3D******** *************** ***********@mic rosoft.com...
>I am using visual studio 2005 to develop a form using c#

I have 3 datagrids on one form.

I can set the row color based on a certain value in a column. However this
color applies to all 3 datagrida. I would like to set it so that

if value of column 3 in datagrid 1 is < 100 set to red, if = 100 set to
green
if value of column 3 in datagrid 2 is < 90 set to red, if >= 90 set to
green
if value of column 3 in datagrid 3is < 80 set to red, if >= 80set to green

No matter how I write my code I cannot seem to get the coloring to apply
to
just one datagrid

My code is below:

<%@ Page Language="C#" %>
<%@ Import Namespace="Syst em.Drawing" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<script runat="server">

protected void GridView1_Selec tedIndexChanged (object sender, EventArgs
e)
{

}

protected void GridView1_RowDa taBound(object sender,
GridViewRowEven tArgs e)
{
if (e.Row.RowType == DataControlRowT ype.DataRow)
{
if (Decimal.Parse( e.Row.Cells[3].Text) < 100)
e.Row.Cells[3].BackColor = Color.IndianRed ;
else
e.Row.Cells[3].BackColor = Color.MediumSea Green;
}
}
protected void GridView3_RowDa taBound(object sender, GridViewRowEven tArgs
e)
{
if (e.Row.RowType == DataControlRowT ype.DataRow)
{
if (Decimal.Parse( e.Row.Cells[3].Text) < 70)
e.Row.Cells[3].BackColor = Color.IndianRed ;
else
e.Row.Cells[3].BackColor = Color.MediumSea Green;
}

}
protected void Page_Load(objec t sender, EventArgs e)
{

}

protected void GridView2_Selec tedIndexChanged (object sender, EventArgs
e)
{

}

</script>

<html><!-- InstanceBegin template="/Templates/supportstats.dw t"
codeOutsideHTML IsLocked="false " -->
<head>
<!-- InstanceBeginEd itable name="doctitle" -->
<title>HKS Medical Information Systems</title>
<!-- InstanceEndEdit able -->
<link rel="stylesheet " type="text/css" href="styles.cs s">
<script language="JavaS cript" src="common.js"
type="text/JavaScript"></script>
<!-- InstanceBeginEd itable name="head" --><!-- InstanceEndEdit able --><!--
InstanceParam name="NavAboutU sON" type="boolean" value="false" --><!--
InstanceParam name="NavSoftwa reSolutionsON" type="boolean" value="false"
--><!-- InstanceParam name="NavServic esON" type="boolean" value="false"
--><!-- InstanceParam name="NavSuppor tON" type="boolean" value="false"
--><!-- InstanceParam name="NavNewsON " type="boolean"
value="false" --><!--
InstanceParam name="NavContac tON" type="boolean" value="false" -->
<script language="JavaS cript">
function breadCrumbs(bas e,delStr,defp,c Style,tStyle,dS tyle,nl) { // by
Paul
Davis - http://www.kaosweaver.com
loc=window.loca tion.toString() ;subs=loc.subst r(loc.indexOf(b ase)+base.lengt h+1).split("/");
document.write( '<a href="'+getLoc( subs.length-1)+defp+'"
class="'+cStyle +'">Home</a '+'<span class="'+dStyle +'">'+delStr+ '</span>
');
a=(loc.indexOf( defp)==-1)?1:2;for (i=0;i<(subs.le ngth-a);i++) {
subs[i]=makeCaps(unesc ape(subs[i]));
document.write( '<a href="'+getLoc( subs.length-i-2)+defp+'"
class="'+cStyle +'">'+subs[i]+'</a '+'<span
class="'+dStyle +'">'+delStr+ '</span');}
if (nl==1) document.write( "<br>");documen t.write('<span
class="'+tStyle +'">'+document. title+'</span>');
}
function makeCaps(a) {
g=a.split(' ');for (l=0;l<g.length ;l++)
g[l]=g[l].toUpperCase(). slice(0,1)+g[l].slice(1);
return g.join(" ");
}
function getLoc(c) {
var d="";if (c>0) for (k=0;k<c;k++) d=d+"../"; return d;
}
</script>
</head>

<body link="#6F96C6" alink="#6F96C6" vlink="#6F96C6" >

<table width="1000" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="224"><a href="http://www.hksys.com"> <img
src="images/hdr_logo.gif" alt="HKS Medical Information Systems"
width="187"
height="79" border="0"></a></td>
<td width="776"><!-- InstanceBeginEd itable name="Header" --><img
src="images/hdr_home.jpg" alt="" height="79" style="width: 811px"><!--
InstanceEndEdit able --></td>
</tr>
</table>
<table width="1000" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="25" bgcolor="#6F96C 6"</td>
<td height="25" align="RIGHT" bgcolor="#6F96C 6"><table width="990"
height="23" border="0" cellpadding="0" cellspacing="0" >
<form action="search/search.pl" method="GET" name="SearchSit e">
<input type="hidden" name="p" value="1" /><input type="hidden"
name="lang" value="en" /><input type="hidden" name="include" value=""
/><input type="hidden" name="exclude" value="" /><input type="hidden"
name="penalty" value="0" /><input type="HIDDEN" name="mode" value="any">

</form>
</table></td>
</tr>
<tr>
<td height="8" colspan="2"><im g src="images/spacer.gif" width="1"
height="8"></td>
</tr>
</table>
<table width="996" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="1000" valign="TOP"><t able width="1000" border="0"
cellpadding="0" cellspacing="0" bgcolor="#A4A4A 5">
<tr>
<td height="1" colspan="3"><im g src="images/spacer.gif" width="1"
height="1"></td>
</tr>
<tr>

<td width="1000" bgcolor="#FFFFF F"><table width="100%" border="0"
cellpadding="0" cellspacing="0" >
<tr>
<td width="100%" bgcolor="#6F96C 6"><!-- InstanceBeginEd itable
name="PageTitle " --><span class="pageTitl e">Support SLA
Compliance </span><!-- InstanceEndEdit able --></td>
</tr>
<tr>
<td><table width="1000" border="0" cellpadding="0"
cellspacing="0" >
<tr>

<td width="1000"><!-- InstanceBeginEd itable
name="PageConte nt" -->
<form id="form1" runat="server">
<div>
<h1>
HKS Support Statistics</h1>
<p>
Click Links for more detail,
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink1 " runat="server"
NavigateUrl="~/priority1-main.aspx">Prio rity 1 </asp:HyperLink>
Issues Last Updated:</span>
</p>
<p>
<asp:HyperLin k ID="HyperLink4 " runat="server"
NavigateUrl="~/priority1-graph.aspx"
Target="_blank" >Graph</asp:HyperLink</p>
<p>
<asp:SqlDataSou rce ID="SqlDataSour ce1" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
Number_of_ticke ts_opened, Number_of_ticke ts_closed_withi n_24hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority1 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority1 AS Priority1_1))

"></asp:SqlDataSour ce>
<asp:GridView ID="GridView1" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource1" Font-Names="Arial"
ForeColor="#333 333" GridLines="None "
OnSelectedIndex Changed="GridVi ew1_SelectedInd exChanged" >
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld DataField="Numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "Number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_c losed_within_24 hrs" HeaderText="# of Issues
Resolved Within 24hrs"

SortExpression= "Number_of_tick ets_closed_with in_24hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed within
SLAS" HeaderText="% of Issues Resolved Within SLAs"
SortExpression= "% of Tickets Closed within SLAS" />
</Columns>
</asp:GridView>
</p>
<p>
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink2 " runat="server"
NavigateUrl="~/priority2-main.aspx">Prio rity 2</asp:HyperLinkIs sues Last
Updated:</span></p>
<p>
<span style="font-family: Arial"<asp:Hype rLink
ID="HyperLink5 "
runat="server" NavigateUrl="~/priority2-graph.aspx"
Target="_blank" >Graph</asp:HyperLink>
<asp:SqlDataSou rce ID="SqlDataSour ce2" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
Number_of_ticke ts_opened, Number_of_ticke ts_closed_withi n_48hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority2 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority2 AS Priority2_1))
"></asp:SqlDataSour ce>
<asp:GridView ID="GridView2" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource2" ForeColor="#333 333"
GridLines="None " OnSelectedIndex Changed="GridVi ew2_SelectedInd exChanged">
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "Number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_c losed_within_48 hrs" HeaderText="# of Issues
Resolved Within 48hrs"

SortExpression= "Number_of_tick ets_closed_with in_48hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed
within SLAS" HeaderText="% of Issues Resolved Within SLAS"
SortExpression= "% of Tickets Closed within
SLAS"
/>
</Columns>
</asp:GridView>
</span>
</p>
<p>
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink3 " runat="server"
NavigateUrl="~/priority3-main.aspx">Prio rity 3</asp:HyperLink>
Issues Last Updated:</span></p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink6 " runat="server"
NavigateUrl="~/priority3-graph.aspx"
Target="_blank" >Graph</asp:HyperLink></span</p>
<p>
<span style="font-family: Arial">
<asp:SqlDataSou rce ID="SqlDataSour ce3" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
number_of_ticke ts_opened, number_of_ticke ts_closed_withi n_120hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority3 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority3 AS Priority3_1))"> </asp:SqlDataSour ce>
<asp:GridView ID="GridView3" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource3" ForeColor="#333 333"
GridLines="None ">
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld
DataField="numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="numb er_of_tickets_c losed_within_12 0hrs" HeaderText="# of Issues
Resolved Within 200hrs"

SortExpression= "number_of_tick ets_closed_with in_120hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed
within SLAS" HeaderText="% of Issues Resolved Within SLAs"
SortExpression= "% of Tickets Closed within
SLAS"
/>
</Columns>
</asp:GridView>
</span>
</p>

</div>
</form>
<!-- InstanceEndEdit able --></td>

</tr>
</table></td>
</tr>
</table></td>
<td width="1"><img src="images/spacer.gif" width="1"
height="1"></td>
</tr>
<tr>
<td height="1" colspan="3"><im g src="images/spacer.gif" width="1"
height="1"></td>
</tr>
</table></td>
</tr>
</table>
<table width="1000" border="0" cellpadding="8" cellspacing="0" >
<tr>
<td width="1000" align="CENTER" class="footer"> © 2006 HKS Medical
Information
Systems | <a href="http://web1.hksys.com/sw/" target="_blank"
class="footerLi nk">User
Support</a| <a href="http://www.hksys.com/admin/" target="_blank"
class="footerLi nk">Client
Login</a| <a href="default.h tm" class="footerLi nk">Home</a></td>
</tr>
<tr>
<td bgcolor="#6F96C 6"><img src="images/spacer.gif" width="1" height="10"
alt=""></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>

Sep 26 '06 #2
many thanks for the quick reply. It is greatly appreciated

Excuse me for being naive but I am new to c# so am not sure how to create a
subclass.

Do you have any code snippets that I might be able to modify?

many thanks

Mike

"Nicholas Paldino [.NET/C# MVP]" wrote:
Mike,

Have you considered creating a subclass of the data grid and exposing a
property which has the threshold for the value in column three? It might
make things a little easier for you.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike Baugh" <Mi*******@disc ussions.microso ft.comwrote in message
news:3D******** *************** ***********@mic rosoft.com...
I am using visual studio 2005 to develop a form using c#

I have 3 datagrids on one form.

I can set the row color based on a certain value in a column. However this
color applies to all 3 datagrida. I would like to set it so that

if value of column 3 in datagrid 1 is < 100 set to red, if = 100 set to
green
if value of column 3 in datagrid 2 is < 90 set to red, if >= 90 set to
green
if value of column 3 in datagrid 3is < 80 set to red, if >= 80set to green

No matter how I write my code I cannot seem to get the coloring to apply
to
just one datagrid

My code is below:

<%@ Page Language="C#" %>
<%@ Import Namespace="Syst em.Drawing" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<script runat="server">

protected void GridView1_Selec tedIndexChanged (object sender, EventArgs
e)
{

}

protected void GridView1_RowDa taBound(object sender,
GridViewRowEven tArgs e)
{
if (e.Row.RowType == DataControlRowT ype.DataRow)
{
if (Decimal.Parse( e.Row.Cells[3].Text) < 100)
e.Row.Cells[3].BackColor = Color.IndianRed ;
else
e.Row.Cells[3].BackColor = Color.MediumSea Green;
}
}
protected void GridView3_RowDa taBound(object sender, GridViewRowEven tArgs
e)
{
if (e.Row.RowType == DataControlRowT ype.DataRow)
{
if (Decimal.Parse( e.Row.Cells[3].Text) < 70)
e.Row.Cells[3].BackColor = Color.IndianRed ;
else
e.Row.Cells[3].BackColor = Color.MediumSea Green;
}

}
protected void Page_Load(objec t sender, EventArgs e)
{

}

protected void GridView2_Selec tedIndexChanged (object sender, EventArgs
e)
{

}

</script>

<html><!-- InstanceBegin template="/Templates/supportstats.dw t"
codeOutsideHTML IsLocked="false " -->
<head>
<!-- InstanceBeginEd itable name="doctitle" -->
<title>HKS Medical Information Systems</title>
<!-- InstanceEndEdit able -->
<link rel="stylesheet " type="text/css" href="styles.cs s">
<script language="JavaS cript" src="common.js"
type="text/JavaScript"></script>
<!-- InstanceBeginEd itable name="head" --><!-- InstanceEndEdit able --><!--
InstanceParam name="NavAboutU sON" type="boolean" value="false" --><!--
InstanceParam name="NavSoftwa reSolutionsON" type="boolean" value="false"
--><!-- InstanceParam name="NavServic esON" type="boolean" value="false"
--><!-- InstanceParam name="NavSuppor tON" type="boolean" value="false"
--><!-- InstanceParam name="NavNewsON " type="boolean"
value="false" --><!--
InstanceParam name="NavContac tON" type="boolean" value="false" -->
<script language="JavaS cript">
function breadCrumbs(bas e,delStr,defp,c Style,tStyle,dS tyle,nl) { // by
Paul
Davis - http://www.kaosweaver.com
loc=window.loca tion.toString() ;subs=loc.subst r(loc.indexOf(b ase)+base.lengt h+1).split("/");
document.write( '<a href="'+getLoc( subs.length-1)+defp+'"
class="'+cStyle +'">Home</a '+'<span class="'+dStyle +'">'+delStr+ '</span>
');
a=(loc.indexOf( defp)==-1)?1:2;for (i=0;i<(subs.le ngth-a);i++) {
subs[i]=makeCaps(unesc ape(subs[i]));
document.write( '<a href="'+getLoc( subs.length-i-2)+defp+'"
class="'+cStyle +'">'+subs[i]+'</a '+'<span
class="'+dStyle +'">'+delStr+ '</span');}
if (nl==1) document.write( "<br>");documen t.write('<span
class="'+tStyle +'">'+document. title+'</span>');
}
function makeCaps(a) {
g=a.split(' ');for (l=0;l<g.length ;l++)
g[l]=g[l].toUpperCase(). slice(0,1)+g[l].slice(1);
return g.join(" ");
}
function getLoc(c) {
var d="";if (c>0) for (k=0;k<c;k++) d=d+"../"; return d;
}
</script>
</head>

<body link="#6F96C6" alink="#6F96C6" vlink="#6F96C6" >

<table width="1000" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="224"><a href="http://www.hksys.com"> <img
src="images/hdr_logo.gif" alt="HKS Medical Information Systems"
width="187"
height="79" border="0"></a></td>
<td width="776"><!-- InstanceBeginEd itable name="Header" --><img
src="images/hdr_home.jpg" alt="" height="79" style="width: 811px"><!--
InstanceEndEdit able --></td>
</tr>
</table>
<table width="1000" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="25" bgcolor="#6F96C 6"</td>
<td height="25" align="RIGHT" bgcolor="#6F96C 6"><table width="990"
height="23" border="0" cellpadding="0" cellspacing="0" >
<form action="search/search.pl" method="GET" name="SearchSit e">
<input type="hidden" name="p" value="1" /><input type="hidden"
name="lang" value="en" /><input type="hidden" name="include" value=""
/><input type="hidden" name="exclude" value="" /><input type="hidden"
name="penalty" value="0" /><input type="HIDDEN" name="mode" value="any">

</form>
</table></td>
</tr>
<tr>
<td height="8" colspan="2"><im g src="images/spacer.gif" width="1"
height="8"></td>
</tr>
</table>
<table width="996" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="1000" valign="TOP"><t able width="1000" border="0"
cellpadding="0" cellspacing="0" bgcolor="#A4A4A 5">
<tr>
<td height="1" colspan="3"><im g src="images/spacer.gif" width="1"
height="1"></td>
</tr>
<tr>

<td width="1000" bgcolor="#FFFFF F"><table width="100%" border="0"
cellpadding="0" cellspacing="0" >
<tr>
<td width="100%" bgcolor="#6F96C 6"><!-- InstanceBeginEd itable
name="PageTitle " --><span class="pageTitl e">Support SLA
Compliance </span><!-- InstanceEndEdit able --></td>
</tr>
<tr>
<td><table width="1000" border="0" cellpadding="0"
cellspacing="0" >
<tr>

<td width="1000"><!-- InstanceBeginEd itable
name="PageConte nt" -->
<form id="form1" runat="server">
<div>
<h1>
HKS Support Statistics</h1>
<p>
Click Links for more detail,
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink1 " runat="server"
NavigateUrl="~/priority1-main.aspx">Prio rity 1 </asp:HyperLink>
Issues Last Updated:</span>
</p>
<p>
<asp:HyperLin k ID="HyperLink4 " runat="server"
NavigateUrl="~/priority1-graph.aspx"
Target="_blank" >Graph</asp:HyperLink</p>
<p>
<asp:SqlDataSou rce ID="SqlDataSour ce1" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
Number_of_ticke ts_opened, Number_of_ticke ts_closed_withi n_24hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority1 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority1 AS Priority1_1))

"></asp:SqlDataSour ce>
<asp:GridView ID="GridView1" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource1" Font-Names="Arial"
ForeColor="#333 333" GridLines="None "
OnSelectedIndex Changed="GridVi ew1_SelectedInd exChanged" >
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld DataField="Numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "Number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_c losed_within_24 hrs" HeaderText="# of Issues
Resolved Within 24hrs"

SortExpression= "Number_of_tick ets_closed_with in_24hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed within
SLAS" HeaderText="% of Issues Resolved Within SLAs"
SortExpression= "% of Tickets Closed within SLAS" />
</Columns>
</asp:GridView>
</p>
<p>
</p>
<p>
<span style="font-family: Arial">
<asp:HyperLin k ID="HyperLink2 " runat="server"
NavigateUrl="~/priority2-main.aspx">Prio rity 2</asp:HyperLinkIs sues Last
Updated:</span></p>
<p>
<span style="font-family: Arial"<asp:Hype rLink
ID="HyperLink5 "
runat="server" NavigateUrl="~/priority2-graph.aspx"
Target="_blank" >Graph</asp:HyperLink>
<asp:SqlDataSou rce ID="SqlDataSour ce2" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SupportStats ConnectionStrin g %>"
SelectCommand=" SELECT Priority, Date,
Number_of_ticke ts_opened, Number_of_ticke ts_closed_withi n_48hrs,
ROUND([%_of_tickets_cl osed_within_sla s], 0) AS '% of Tickets Closed within
SLAS' FROM dbo.Priority2 WHERE (Date IN (SELECT MAX(Date) AS date FROM
dbo.Priority2 AS Priority2_1))
"></asp:SqlDataSour ce>
<asp:GridView ID="GridView2" runat="server"
OnRowDataBound= "GridView1_RowD ataBound" AutoGenerateCol umns="False"
CellPadding="4"
DataSourceID="S qlDataSource2" ForeColor="#333 333"
GridLines="None " OnSelectedIndex Changed="GridVi ew2_SelectedInd exChanged">
<FooterStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<RowStyle BackColor="#E3E AEB" HorizontalAlign ="Center"
Font-Bold="True" />
<EditRowStyle BackColor="#7C6 F57" />
<SelectedRowSty le BackColor="#C5B BAF" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#666 666" ForeColor="Whit e"
HorizontalAlign ="Center" />
<HeaderStyle BackColor="#1C5 E55" Font-Bold="True"
ForeColor="Whit e" />
<AlternatingRow Style BackColor="Whit e" />
<Columns>
<asp:BoundFie ld DataField="Date " HeaderText="Dat e"
ReadOnly="True" SortExpression= "Date" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_o pened"
HeaderText="# of Issues Opened"
SortExpression= "Number_of_tick ets_opened" />
<asp:BoundFie ld
DataField="Numb er_of_tickets_c losed_within_48 hrs" HeaderText="# of Issues
Resolved Within 48hrs"

SortExpression= "Number_of_tick ets_closed_with in_48hrs" />
<asp:BoundFie ld DataField="% of Tickets Closed
within SLAS" HeaderText="% of Issues Resolved Within SLAS"
Sep 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2788
by: Andrea Trevisan | last post by:
That's a revival of a known thing I suppose.I hope it's useful. My problem was: I want to have a DataGrid with two Template columns: first with TextBox,second with Button.I want to fire an event from button and I want to have a reference to TextBox to make use of it.The most difficult was the reference to TextBox. This sample is taken from...
1
2516
by: Joe Bloggs | last post by:
I am trying display the contents of a table in a web page, select certain rows from that table and then display the fields that I have selected (now table columns) as text in a Label object. Amazingly I have managed to display the table - no problem, I can select rows - no problem, BUT I can't work out how to display more than one of the...
0
1660
by: mgenti | last post by:
I am experiencing a problem when I add a row to a DataTable that is used on a DataGrid in my Windows Form application. When I add a new row I no longer get a response from my form. I see the row apear in the DataGrid but still no response from the form. If I add the same data to a rich text box and don't use the datagrid I don't have this...
1
1246
by: Stephen J. Shephard | last post by:
Hi there, I know this is probably a 101-type question, and I've dealt with it using client script blocks before, but I'm curious about what the best way to handle the enter key is.. (i.e., to handle it when it generates a postback). In my particularly frustrating situation, I have a master-detail type datagrid/form page, and when the user...
4
7362
by: Suzanne | last post by:
Hi all, I'm having problems with datagrids and the currentcellchanged event. My problem is this: I have a datagrid on a form, if the user changes the text in a cell on the datagrid then tries to close the form via a button on the toolbar (with going to another cell in the datagrid)I want to be able to popup a messagebox to the user asking...
0
1242
by: Marcus Kwok | last post by:
I am having a weird problem with my DataGrid that is bound to an ArrayList. My situation is as follows: I have two DataGrids on a modal form. The top grid populates an ArrayList from a file, then the datagrid is bound to it, and it works fine. The bottom DataGrid is bound to a different ArrayList that holds the same type as the first...
9
2117
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. For a datagrid control, i used the Caption property. It displays fine on the datagrid and allows me to run the program. But, when i view the HTML for the...
9
2712
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the code: <script runat="server"> Dim sqlConn As New SqlConnection(".....") Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) If Not...
8
1975
by: =?Utf-8?B?bWlrZWc=?= | last post by:
Hi, I am building a small Help Desk application for my company and need to be able to edit "open" help desk issues. I use a simple datagrid to display each issue (6 per page) , with an Edit button. There are a lot of fields across, and my Network Admins would like a way of editing/updating each issue seperately in a a vertical form. I...
0
7775
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8120
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8143
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6515
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3778
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3797
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2286
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1107
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.