Tips & Tricks for ASP.NET - C#

Google site Search
Gridview Cell value replace

    Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles GridView1.RowDataBound

        If e.Row.RowType = DataControlRowType.DataRow Then

            ' Display the company name in italics.
            If e.Row.Cells(2).Text = "1" Then
                e.Row.Cells(2).Text = "Your Company"
            ElseIf e.Row.Cells(2).Text = "2" Then
                e.Row.Cells(2).Text = "Your Hard work"
            ElseIf e.Row.Cells(2).Text = "3" Then
                e.Row.Cells(2).Text = "Your Boss"
            ElseIf e.Row.Cells(2).Text = "4" Then
                e.Row.Cells(2).Text = "None"
            End If


        End If



Arvixe offers ASP.net hosting that's good for testing plugins. Here is a good arvixe review if you want to know more.

Comments
Write Comments
Name  
Email    
Comments  

Other Titles