If there any solution on how to choose specific column..what is the code??
i'm using VB.Net

If e.Row.RowType = DataControlRowType.DataRow Then
            Dim CellValue As Decimal = Convert.ToDecimal(e.Row.Cells(4).Text)
            If CellValue < 5.0 Then
                e.Row.Cells(4).BackColor = Drawing.Color.Orange
            End If
        End If

Recommended Answers

All 2 Replies

So you're trying to do conditional formatting of the cell based on it's value? What version of Visual Studio are you using?

i'm using VB 2005..act i already get da answer where to get the database should done manually through coding not using accessdatasource/objectdatasource. coz the code only read the condition using manual code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.