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 Quandries

DataGrid Quandries

Scheduled Pinned Locked Moved C#
csswpfwcfquestionlounge
2 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.
  • R Offline
    R Offline
    RB Emphasys
    wrote on last edited by
    #1

    Hello All, Im actually looking for some general suggestions. I am suppose to edit a datagrid control that has been prepopulated. When I say prepopulated, I mean that we use this third party tool that binds to the datagrid. Here are my problems: 1. Is it possible to get a collection of the column objects at runtime? 2. Can I reorded the columns at runtime? 3. Can I rename the column headings? It looks like all of these things are fairly simple to do, through the DataGrid.TableStyles object. But I really don't have much to work with other than the grid, because of the binding to the third party control. I guess if someone could direct me on how I can get and edit the columns collection of the datagrid I would be greatly appreciative. Thanks, Ryan

    D 1 Reply Last reply
    0
    • R RB Emphasys

      Hello All, Im actually looking for some general suggestions. I am suppose to edit a datagrid control that has been prepopulated. When I say prepopulated, I mean that we use this third party tool that binds to the datagrid. Here are my problems: 1. Is it possible to get a collection of the column objects at runtime? 2. Can I reorded the columns at runtime? 3. Can I rename the column headings? It looks like all of these things are fairly simple to do, through the DataGrid.TableStyles object. But I really don't have much to work with other than the grid, because of the binding to the third party control. I guess if someone could direct me on how I can get and edit the columns collection of the datagrid I would be greatly appreciative. Thanks, Ryan

      D Offline
      D Offline
      Dimitris Iliopoulos
      wrote on last edited by
      #2

      for questions see System.Windows.Forms.DataGridTableStyle and DataGridColumnStyle, this two things are grid properties so you don't have to knoe the source (if the source edit TableStyles then you are in trouble) if you don't have the Datatable to which the grid is binded you don't have any direct way to find the columns. From Greece: Dimitris Iliopoulos dimilio@yahoo.com

      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