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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Design help for Grid component

Design help for Grid component

Scheduled Pinned Locked Moved ASP.NET
helpquestioncssdesign
2 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    ake_krakbar
    wrote on last edited by
    #1

    Hello folks! I´ve develoed a custom control, inheriting from the DataGrid control. The custom control provides access to /information about the files in a specified folder. Columns in the grid allows the user to view the file, see filesize, delete the file etc. The problem is that when the page user uses this componenent he cannot specify in wich order the columns should appear. How do I solve this issue? Using ITemplate properties maybe? But if so, how do i associate these properties to different columns in the Grid?

    M 1 Reply Last reply
    0
    • A ake_krakbar

      Hello folks! I´ve develoed a custom control, inheriting from the DataGrid control. The custom control provides access to /information about the files in a specified folder. Columns in the grid allows the user to view the file, see filesize, delete the file etc. The problem is that when the page user uses this componenent he cannot specify in wich order the columns should appear. How do I solve this issue? Using ITemplate properties maybe? But if so, how do i associate these properties to different columns in the Grid?

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, To add the design support for your custom control, you might consider implementing your own custom control editor that looks similar to the DataGridComponentEditor. When the user edits a datagrid at the design time, he can click on the Property Builder ... link to open the component editor which can help the user to edit the template of the datagrid including the order of the columns. For more information, you can see Enhancing Design-Time Support[^]

      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