dcsimg
Results 1 to 3 of 3
  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    gridview item style

    Hi,

    I have a gridview in my xaml page, and I populate the item as follow :

    Code:
    For test As Integer = 1 To 20
    
                gridview1.Items.Add(test )
    
            Next
    Which works fine. But what I;m trying to do is add another data in the item like this :

    Code:
    For test As Integer = 1 To 20
    
                gridview1.Items.Add(test )
    
    	gridview1.Items.Add(GENERATED_NUMBER)
    
            Next

    But I want the two data to appear in different style(color, size ...) How can I achieve that easily?

    Thank You

  2. #2
    New Member
    Join Date
    Aug 2014
    Posts
    10

    Re: gridview item style

    Try
    gridvbiew1.EditIndex = e.NewEditIndex
    BindTheData()

    Catch ex As Exception
    Response.Write(ex.Message)
    End Try

    in the RowEditing if you are editing data.

  3. #3

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: gridview item style

    @sandeepv415 ,

    I thnk the sample code you provided is for vb.net app but it doesn't apply for windows 8 apps.

    thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width