Click here to Skip to main content
15,888,113 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Inconsistent "Failed to enable constraints" error Pin
Johan Hakkesteegt20-Jul-10 19:58
Johan Hakkesteegt20-Jul-10 19:58 
QuestionTaking print screen of error page in CATCH block Pin
Karan_TN20-Jul-10 1:51
Karan_TN20-Jul-10 1:51 
AnswerRe: Taking print screen of error page in CATCH block Pin
Yusuf20-Jul-10 2:15
Yusuf20-Jul-10 2:15 
AnswerRe: Taking print screen of error page in CATCH block Pin
Peace ON20-Jul-10 2:19
Peace ON20-Jul-10 2:19 
GeneralRe: Taking print screen of error page in CATCH block Pin
Karan_TN20-Jul-10 3:12
Karan_TN20-Jul-10 3:12 
AnswerRe: Taking print screen of error page in CATCH block Pin
Peace ON20-Jul-10 3:49
Peace ON20-Jul-10 3:49 
QuestionHow to change cell text colour of dynamically populated gridview from database in C# Pin
Mansi Arora20-Jul-10 1:48
Mansi Arora20-Jul-10 1:48 
AnswerRe: How to change cell text colour of dynamically populated gridview from database in C# Pin
Peace ON20-Jul-10 2:07
Peace ON20-Jul-10 2:07 
Using RowDataBound is frequently the best way. Here's a quick example that changes the row color based on the status of a CheckBoxField.

VB
  Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)
    If (e.Row.RowType = DataControlRowType.DataRow) Then
        Dim cb As CheckBox = CType(e.Row.Cells(1).Controls(0), CheckBox)
        If (cb.Checked = False) Then
            e.Row.BackColor = Drawing.Color.LightYellow
            e.Row.Cells(0).ForeColor = Drawing.Color.Red
        Else
            e.Row.ForeColor = Drawing.Color.Blue
            cb.Enabled = True
        End If
    End If
End Sub


Please do not repost the question. You have already asked your question here[^]

You can write comment if you have any doubt or further query.



HTH
Jinal Desai - LIVE
Experience is mother of sage....

GeneralRe: How to change cell text colour of dynamically populated gridview from database in C# Pin
Mansi Arora20-Jul-10 2:19
Mansi Arora20-Jul-10 2:19 
GeneralRe: How to change cell text colour of dynamically populated gridview from database in C# Pin
Peace ON20-Jul-10 2:26
Peace ON20-Jul-10 2:26 
GeneralRe: How to change cell text colour of dynamically populated gridview from database in C# Pin
Mansi Arora20-Jul-10 2:30
Mansi Arora20-Jul-10 2:30 
AnswerRe: How to change cell text colour of dynamically populated gridview from database in C# Pin
Peace ON20-Jul-10 2:37
Peace ON20-Jul-10 2:37 
QuestionHow to Update an XML File from a RadSchedular Pin
Vimalsoft(Pty) Ltd20-Jul-10 1:41
professionalVimalsoft(Pty) Ltd20-Jul-10 1:41 
QuestionUnable To maintain Page State Pin
mharoonkhan19-Jul-10 23:57
mharoonkhan19-Jul-10 23:57 
AnswerRe: Unable To maintain Page State Pin
Peace ON20-Jul-10 0:04
Peace ON20-Jul-10 0:04 
AnswerRe: Unable To maintain Page State Pin
Prosanta Kundu online20-Jul-10 1:08
Prosanta Kundu online20-Jul-10 1:08 
GeneralRe: Unable To maintain Page State Pin
mharoonkhan20-Jul-10 18:05
mharoonkhan20-Jul-10 18:05 
QuestionDisplay pop up data Pin
SatyaKeerthi1519-Jul-10 22:42
SatyaKeerthi1519-Jul-10 22:42 
AnswerRe: Display pop up data Pin
Peace ON19-Jul-10 22:45
Peace ON19-Jul-10 22:45 
GeneralRe: Display pop up data Pin
SatyaKeerthi1519-Jul-10 23:08
SatyaKeerthi1519-Jul-10 23:08 
QuestionRe: Display pop up data Pin
Peace ON19-Jul-10 23:50
Peace ON19-Jul-10 23:50 
AnswerRe: Display pop up data Pin
SatyaKeerthi1520-Jul-10 0:34
SatyaKeerthi1520-Jul-10 0:34 
AnswerRe: Display pop up data Pin
Peace ON20-Jul-10 1:23
Peace ON20-Jul-10 1:23 
GeneralRe: Display pop up data Pin
SatyaKeerthi1520-Jul-10 1:26
SatyaKeerthi1520-Jul-10 1:26 
AnswerRe: Display pop up data Pin
Peace ON20-Jul-10 1:42
Peace ON20-Jul-10 1:42 

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.