![]() |
.NET DataGridView Skinning Issue |
Post Reply ![]() |
Author | |
apuhjee ![]() Senior Member ![]() ![]() Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
![]() ![]() ![]() ![]() ![]() 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
![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
ylhyh ![]() Newbie ![]() Joined: 24 October 2007 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
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); } } |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |