Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - .NET DataGridView Skinning Issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

.NET DataGridView Skinning Issue

 Post Reply Post Reply
Author
Message
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post Topic: .NET DataGridView Skinning Issue
    Posted: 25 June 2007 at 12:33pm
Oleg -
I'm cannot exactly describe what circumstances cause this issue, which is why I'm posting to the forum and not creating an IssueTrak ticket... but I wanted you to be aware of it nonetheless.  I think it has something to do with setting the column AutoSizeMode to Fill - but you can see that the vertical scrollbar renders ok, but the horizontal is not skinned
 
Cheers ~ jp
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2007 at 2:14am
Hello,
 
I Just tried it. These scrollbars is .NET scrollbars - not standard, and DataView creates them before show.
So if scrollbars was visible before you apply skin - they become skinned.
 
you can add some dummy large column in design time - it will create horizontal bar, then delete it and add your columns.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ylhyh View Drop Down
Newbie
Newbie


Joined: 24 October 2007
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ylhyh Quote  Post ReplyReply Direct Link To This Post Posted: 06 November 2007 at 2:20am
ha ha
 
this:
 
#region ScrollBar Skin
            if (this.Visible)
            {
                dgvGroups.VirtualMode = false;
                dgvUsers.VirtualMode = false;
                try
                {
                    for (int i = 0; i < 20; i++)
                    {//Vertical ScrollBar
                        dgvGroups.Rows.Add(new object[] { "", "", "", "" });
                        dgvUsers.Rows.Add(new object[] { "", "", "", null, "", "" });
                    }
                }
                catch{}
                tabGroupUser.SelectedTab = tabUsers;
                Common.OnVisibleChanged(tabUsers);
                //Horizontal ScrollBar
                this.Width = 630;
                this.Left = (Owner.Width - this.Width) / 2;
                tabGroupUser.SelectedTab = tabGroups;
                dgvGroups.VirtualMode = true;
                dgvUsers.VirtualMode = true;
            }
            #endregion
 
Common.cs:
 
public static void OnVisibleChanged(Control ctrl)
        {
            //Apply Skin 
            if (ctrl.Visible)
            {
                Common.skinFramework.ApplyWindow(ctrl.Handle.ToInt32());
                ctrl.BackColor = Common.skinFramework.GetColor(XtremeSkinFramework.XTPColorManagerColor.STDCOLOR_BTNFACE);
            }
        }
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.143 seconds.