Click here to Skip to main content
15,915,324 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: please help me Pin
itzmevishu5-Aug-07 19:31
itzmevishu5-Aug-07 19:31 
AnswerRe: please help me Pin
Malcolm Smart5-Aug-07 21:27
Malcolm Smart5-Aug-07 21:27 
AnswerRe: please help me Pin
Mubashir Javaid5-Aug-07 22:13
Mubashir Javaid5-Aug-07 22:13 
AnswerAre you ever going to listen?!? Pin
leckey6-Aug-07 3:05
leckey6-Aug-07 3:05 
GeneralRe: Are you ever going to listen?!? Pin
Malcolm Smart6-Aug-07 3:24
Malcolm Smart6-Aug-07 3:24 
GeneralRe: Are you ever going to listen?!? Pin
leckey6-Aug-07 3:59
leckey6-Aug-07 3:59 
QuestionThumbnail Control for ASP.Net 2.0 Pin
hifiger20045-Aug-07 17:21
hifiger20045-Aug-07 17:21 
QuestionGet Value of Cell in ItemTemplate for Datagrid Pin
thedom25-Aug-07 15:50
thedom25-Aug-07 15:50 
I want to make a row red based on value of cell for a datagrid.

Now I have code that works for bound columns but if its a ItemTemplate its no good.

Here is code that works for bound Columns

<br />
 Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound<br />
        Dim sStr As String<br />
        sStr = Convert.ToString(System.Web.UI.DataBinder.Eval(e.Row.DataItem, "Status"))<br />
        If sStr = "DEAD" Then<br />
            e.Row.BackColor = System.Drawing.Color.Red<br />
        End If<br />
    End Sub<br />


Can someone please assist me and supply code for checking data on a itemtemplate please.

thanks coders
AnswerRe: Get Value of Cell in ItemTemplate for Datagrid Pin
Mubashir Javaid5-Aug-07 19:37
Mubashir Javaid5-Aug-07 19:37 
QuestionResponse.TransmitFile Pin
Edbert P5-Aug-07 15:45
Edbert P5-Aug-07 15:45 
QuestionImplementing imagebutton control into treeview (2.0)? Pin
Goalie355-Aug-07 15:45
Goalie355-Aug-07 15:45 
QuestionNeed Help! Pin
cometburn0075-Aug-07 15:44
cometburn0075-Aug-07 15:44 
AnswerRe: Need Help! Pin
T.EDY5-Aug-07 15:56
T.EDY5-Aug-07 15:56 
GeneralRe: Need Help! Pin
cometburn0075-Aug-07 15:59
cometburn0075-Aug-07 15:59 
AnswerRe: Need Help! Pin
leckey6-Aug-07 3:06
leckey6-Aug-07 3:06 
AnswerRe: Need Help! Pin
Goalie356-Aug-07 3:08
Goalie356-Aug-07 3:08 
QuestionDynamically building checkbox controls in the gridview (VB please) Pin
NPCG5-Aug-07 15:15
NPCG5-Aug-07 15:15 
AnswerRe: Please help with displaying text doc Pin
Pete O'Hanlon5-Aug-07 9:43
mvePete O'Hanlon5-Aug-07 9:43 
QuestionHey guys, help a new guy in ASP.Net 2.0 Pin
mrkeivan5-Aug-07 8:26
mrkeivan5-Aug-07 8:26 
AnswerRe: Hey guys, help a new guy in ASP.Net 2.0 Pin
T.EDY5-Aug-07 16:01
T.EDY5-Aug-07 16:01 
GeneralRe: Hey guys, help a new guy in ASP.Net 2.0 Pin
mrkeivan5-Aug-07 21:55
mrkeivan5-Aug-07 21:55 
GeneralRe: Hey guys, help a new guy in ASP.Net 2.0 Pin
T.EDY5-Aug-07 22:29
T.EDY5-Aug-07 22:29 
GeneralRe: Hey guys, help a new guy in ASP.Net 2.0 Pin
mrkeivan10-Aug-07 10:15
mrkeivan10-Aug-07 10:15 
QuestionEncrypt Decrypt function Pin
Md Arif5-Aug-07 3:41
Md Arif5-Aug-07 3:41 
AnswerRe: Encrypt Decrypt function Pin
Guffa5-Aug-07 11:57
Guffa5-Aug-07 11:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.