Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Tablestyles for Datagrid

Tablestyles for Datagrid

Scheduled Pinned Locked Moved Visual Basic
databasecomhelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sachin Gokhale
    wrote on last edited by
    #1

    Hello All, Well i am working with collections in the project. I have set the datasource property of the datagrid to a collection (I am not using dataset just the collection). I am unable to format the datagrid using the tablestyles. Would anyone please help me in formating the datagrid (using tablestyles) when the datasource property is set to a collection. Thanks in advance, P.S - I am unable to set the mappingname property in the tablestyle to collection. if you send a mail at gokhale.i1@gmail.com in response to this query it would be better...

    S D 2 Replies Last reply
    0
    • S Sachin Gokhale

      Hello All, Well i am working with collections in the project. I have set the datasource property of the datagrid to a collection (I am not using dataset just the collection). I am unable to format the datagrid using the tablestyles. Would anyone please help me in formating the datagrid (using tablestyles) when the datasource property is set to a collection. Thanks in advance, P.S - I am unable to set the mappingname property in the tablestyle to collection. if you send a mail at gokhale.i1@gmail.com in response to this query it would be better...

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Sachin Gokhale wrote:

      gokhale.i1@gmail.com

      Marked as Spam.

      SSK.

      1 Reply Last reply
      0
      • S Sachin Gokhale

        Hello All, Well i am working with collections in the project. I have set the datasource property of the datagrid to a collection (I am not using dataset just the collection). I am unable to format the datagrid using the tablestyles. Would anyone please help me in formating the datagrid (using tablestyles) when the datasource property is set to a collection. Thanks in advance, P.S - I am unable to set the mappingname property in the tablestyle to collection. if you send a mail at gokhale.i1@gmail.com in response to this query it would be better...

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Noone is going to send you anything to your email address. Any replies you get will only be posted here so that others who have the same problem may benefit.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        S 1 Reply Last reply
        0
        • D Dave Kreskowiak

          Noone is going to send you anything to your email address. Any replies you get will only be posted here so that others who have the same problem may benefit.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          S Offline
          S Offline
          Sachin Gokhale
          wrote on last edited by
          #4

          So, can you gte me some solution for my query ???

          D 1 Reply Last reply
          0
          • S Sachin Gokhale

            So, can you gte me some solution for my query ???

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            If I remember correctly, you can't. TableStyles only work with DataSet and DataTable objects, not user collections. The MappingName property must match up with the TableName property of a DataSet or DataTable object, which your collection will not have.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups