Just a thought

a very casual blogger

How to Count Columns inside a Gridview

            For x = 1 To gvPart2.Columns.Count - 1
                If e.Row.Cells(x).Text Is Nothing Then
                    e.Row.Cells(x).Text = "--"
                ElseIf e.Row.Cells(x).Text < "375" Then
                    e.Row.Cells(x).Style.Add("background-color", "yellow")
                End If
            Next

Advertisement

One Response to How to Count Columns inside a Gridview

  1. Balaji.J June 16, 2011 at 04:51

    HI

    This is very useful…

    see my site also

    http://dotnetinfomedia.wordpress.com/
    http://dotnetinfomedia.blogspot.com/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.