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. Strange Problem with UltraWinGrid ButtonColumn

Strange Problem with UltraWinGrid ButtonColumn

Scheduled Pinned Locked Moved C#
csshelpquestion
3 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.
  • M Offline
    M Offline
    Mukesh Kumar Gupta
    wrote on last edited by
    #1

    I am setting Conditional BackColor property of UltriWinGrid ButtonColumn with this code: private void gridLookup_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if(UtilClass.IsNumeric(e.Row.Cells["BuildingId"].Value.ToString())) { e.Row.CellAppearance.BackColor = Color.PeachPuff; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.PeachPuff; } else { e.Row.CellAppearance.BackColor = Color.White; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.White; } } now this code is working fine at first time but when user perform horizontal scrolling on this grid the button column disappear once and when user again reverse scrolls the column appears without back color formatting, how can I make assigned backcolor stable on scrolling.

    L L 2 Replies Last reply
    0
    • M Mukesh Kumar Gupta

      I am setting Conditional BackColor property of UltriWinGrid ButtonColumn with this code: private void gridLookup_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if(UtilClass.IsNumeric(e.Row.Cells["BuildingId"].Value.ToString())) { e.Row.CellAppearance.BackColor = Color.PeachPuff; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.PeachPuff; } else { e.Row.CellAppearance.BackColor = Color.White; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.White; } } now this code is working fine at first time but when user perform horizontal scrolling on this grid the button column disappear once and when user again reverse scrolls the column appears without back color formatting, how can I make assigned backcolor stable on scrolling.

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Thats nice. Now why dont you ask the authors of this control? :doh:

      xacc.ide-0.1.3.2

      1 Reply Last reply
      0
      • M Mukesh Kumar Gupta

        I am setting Conditional BackColor property of UltriWinGrid ButtonColumn with this code: private void gridLookup_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if(UtilClass.IsNumeric(e.Row.Cells["BuildingId"].Value.ToString())) { e.Row.CellAppearance.BackColor = Color.PeachPuff; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.PeachPuff; } else { e.Row.CellAppearance.BackColor = Color.White; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.White; } } now this code is working fine at first time but when user perform horizontal scrolling on this grid the button column disappear once and when user again reverse scrolls the column appears without back color formatting, how can I make assigned backcolor stable on scrolling.

        L Offline
        L Offline
        LongRange Shooter
        wrote on last edited by
        #3

        This question belongs on the Infragistics user forum, not a general programming forum. There are 10 kinds of people in the world.
        Those that read binary...
        ...and those who don't.

        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