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. C#
  4. datagrid invoke and tablestyles

datagrid invoke and tablestyles

Scheduled Pinned Locked Moved C#
question
5 Posts 2 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.
  • X Offline
    X Offline
    xrado
    wrote on last edited by
    #1

    how do i bind tablestyle back to datatable after datagrid invoke. when im updating datagrid with invoke .. private void UpdateGrid(DataSet table) { dataGrid1.DataSource=table.Tables["data"]; } dataGrid1.Invoke(new UpdateGridCallback(this.UpdateGrid), new object[]{some_data_set}); ..i lose datagrid style which is already defined. bye -- modified at 3:56 Friday 23rd September, 2005

    S 1 Reply Last reply
    0
    • X xrado

      how do i bind tablestyle back to datatable after datagrid invoke. when im updating datagrid with invoke .. private void UpdateGrid(DataSet table) { dataGrid1.DataSource=table.Tables["data"]; } dataGrid1.Invoke(new UpdateGridCallback(this.UpdateGrid), new object[]{some_data_set}); ..i lose datagrid style which is already defined. bye -- modified at 3:56 Friday 23rd September, 2005

      S Offline
      S Offline
      sreejith ss nair
      wrote on last edited by
      #2

      Through DataGrid.TableStyles proerty you will get the table style which you assigned to the Datagrid. :-D Sreejith Nair [ My Articles ]

      X 1 Reply Last reply
      0
      • S sreejith ss nair

        Through DataGrid.TableStyles proerty you will get the table style which you assigned to the Datagrid. :-D Sreejith Nair [ My Articles ]

        X Offline
        X Offline
        xrado
        wrote on last edited by
        #3

        ok i solved that, but what if i invoke more times. First time its working ok, when i do it second time, datagrid get screwed and starts to blink. im trying to use threads to update datagrid form dataset. and suggestions

        S 1 Reply Last reply
        0
        • X xrado

          ok i solved that, but what if i invoke more times. First time its working ok, when i do it second time, datagrid get screwed and starts to blink. im trying to use threads to update datagrid form dataset. and suggestions

          S Offline
          S Offline
          sreejith ss nair
          wrote on last edited by
          #4

          You try to assign the Table style property to null, then try to assign the second required table stayle property.:-D Sreejith Nair [ My Articles ]

          X 1 Reply Last reply
          0
          • S sreejith ss nair

            You try to assign the Table style property to null, then try to assign the second required table stayle property.:-D Sreejith Nair [ My Articles ]

            X Offline
            X Offline
            xrado
            wrote on last edited by
            #5

            hi, i dont know if this is still a question of table styles, look what i get first invoke ..ok invoke again ??? hope to hear from you again bye rado.

            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