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. DataGridColumnStyle Class

DataGridColumnStyle Class

Scheduled Pinned Locked Moved C#
helpcssquestion
1 Posts 1 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
    stephen woolhead
    wrote on last edited by
    #1

    I have this class that I have derived from DataGridColumnStyle and all is working well apart from one issue. In my test program I have created a DataSet at runtime and created a table with 3 columns, the table is set to the datasource for the grid. One of the columns is set to readonly. Now my problem is that I can't seem to find anyway to detect this from within my derived DataGridColumnStyle class. The DataGridTextBoxColumn class seems to manage this feat somehow. For me I just get an exception thrown from DataGrid.CommitEdit() telling me that an object reference is not set to an object when I try to commit the change. Anyone got any ideas on how I could dected the the DataSet.DataTable.DataColumn is read only? Thanks Stephen.

    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