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. redg DataGrid

redg DataGrid

Scheduled Pinned Locked Moved C#
data-structuresquestion
4 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.
  • K Offline
    K Offline
    karteek
    wrote on last edited by
    #1

    Hi, I want to dynamically allocate datagrids depending on the input. So I declared a datagrid array .But it is not working . Can I do this way? I tried keeping a single datagrid .It is working. Later I changed it into array keeping a loop.Now it is not working. Karteek

    S H 2 Replies Last reply
    0
    • K karteek

      Hi, I want to dynamically allocate datagrids depending on the input. So I declared a datagrid array .But it is not working . Can I do this way? I tried keeping a single datagrid .It is working. Later I changed it into array keeping a loop.Now it is not working. Karteek

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

      let me conform this. you want to dynamically create grid based on some values. am i right ?. if not explain your problem little bit more Sreejith S S Nair

      K 1 Reply Last reply
      0
      • K karteek

        Hi, I want to dynamically allocate datagrids depending on the input. So I declared a datagrid array .But it is not working . Can I do this way? I tried keeping a single datagrid .It is working. Later I changed it into array keeping a loop.Now it is not working. Karteek

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        Instead of using different DataGrids based on the input, use the DataGrid.TableStyles property to define different table styles with explicit DataGridColumnStyles. That's what it's there for. See the documentation for the DataGrid.TableStyles property for more information and an example.

        Microsoft MVP, Visual C# My Articles

        1 Reply Last reply
        0
        • S sreejith ss nair

          let me conform this. you want to dynamically create grid based on some values. am i right ?. if not explain your problem little bit more Sreejith S S Nair

          K Offline
          K Offline
          karteek
          wrote on last edited by
          #4

          Hi, I will take the number as input from the user and display as many datagrids as the number is.They don't have any values for present.( Later he can select the values to be present in each datagrid.) Karteek.

          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