本文介绍了尽管在HTML和代码中使用滚动条,但滚动条仍然不可见。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vb代码

uwgActive.DisplayLayout.Bands(0).Columns(0).Width = Unit.Pixel(30)

uwgActive.DisplayLayout.Bands(0).Columns(1).Width = Unit.Pixel(80)

uwgActive.DisplayLayout.Bands(0).Columns(2).Width = Unit.Pixel( 200)

uwgActive.DisplayLayout.Bands(0).Columns(3).Width = Unit.Pixel(80)

uwgActive.DisplayLayout.Bands(0).Columns (4).Width = Unit.Pixel(200)

uwgActive.DisplayLayout.Bands(0).Columns(5).Width = Unit.Pixel(70)

uwgActive.DisplayLayout.Bands(0).Columns(6).Width = Unit.Pixel(70)

uwgActive.DisplayLayout.Bands(0).Columns(7).Width = Unit.Pixel( 80)

uwgActive.DisplayLayout.Bands(0).Columns(8).Width = Unit.Pixel(200)

Me.uwgActive.Columns(5).CellStyle .Wrap = True

Me.uwgActive.DisplayLayout.HeaderStyleDefault.Height = Unit.Pixel(50)

Me.uwgActive.DisplayLayout.Station aryMargins = Infragistics.WebUI.UltraWebGrid.StationaryMargins.Header

Me.uwgActive.DisplayLayout.ScrollBarView = ScrollBarView.Vertical







Html代码



< igtbl:ultrawebgrid id =uwgActiveDisplayLayout- ScrollBarView =Verticalrunat =serverImageDirectory =/ ig_common / Images /Height =80px>

< DisplayLayout AllowSortingDefault =OnClientRowHeightDefault =20pxVersion = 4.00SelectTypeRowDefault =Extended

AllowColumnMovingDefault =NoneRowsRange =10HeaderClickActionDefault =SortSingleBorderCollapseDefault =Collapse

RowSelectorsDefault =NoName = ActiveWebGrid>



我尝试过:



i尝试在HTMl代码中使用DisplayLayout-ScrollBarView =Vertical,并尝试修改webgrid的高度和宽度

Vb code
uwgActive.DisplayLayout.Bands(0).Columns(0).Width = Unit.Pixel(30)
uwgActive.DisplayLayout.Bands(0).Columns(1).Width = Unit.Pixel(80)
uwgActive.DisplayLayout.Bands(0).Columns(2).Width = Unit.Pixel(200)
uwgActive.DisplayLayout.Bands(0).Columns(3).Width = Unit.Pixel(80)
uwgActive.DisplayLayout.Bands(0).Columns(4).Width = Unit.Pixel(200)
uwgActive.DisplayLayout.Bands(0).Columns(5).Width = Unit.Pixel(70)
uwgActive.DisplayLayout.Bands(0).Columns(6).Width = Unit.Pixel(70)
uwgActive.DisplayLayout.Bands(0).Columns(7).Width = Unit.Pixel(80)
uwgActive.DisplayLayout.Bands(0).Columns(8).Width = Unit.Pixel(200)
Me.uwgActive.Columns(5).CellStyle.Wrap = True
Me.uwgActive.DisplayLayout.HeaderStyleDefault.Height = Unit.Pixel(50)
Me.uwgActive.DisplayLayout.StationaryMargins = Infragistics.WebUI.UltraWebGrid.StationaryMargins.Header
Me.uwgActive.DisplayLayout.ScrollBarView = ScrollBarView.Vertical



Html Code
"
<igtbl:ultrawebgrid id="uwgActive" DisplayLayout-ScrollBarView="Vertical" runat="server" ImageDirectory="/ig_common/Images/" Height="80px">
<DisplayLayout AllowSortingDefault="OnClient" RowHeightDefault="20px" Version="4.00" SelectTypeRowDefault="Extended"
AllowColumnMovingDefault="None" RowsRange="10" HeaderClickActionDefault="SortSingle" BorderCollapseDefault="Collapse"
RowSelectorsDefault="No" Name="ActiveWebGrid">"

What I have tried:

i have tried using DisplayLayout-ScrollBarView="Vertical" in HTMl code and also tried to modify the height and width of webgrid

推荐答案


这篇关于尽管在HTML和代码中使用滚动条,但滚动条仍然不可见。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 12:42