I have 11 columns in a grid and I want them to expand the width to 100% of the grid (in total) while
allowing for the space of the vertical scroolbar. The problem seems to be that the
grid columns always expand greater than 100% of my grid and I always have the horizontal scrollbar
unless I set the columns to a fixed width.
How can I achieve this without setting fixed widths.
Hello,
If you would still like assistance with this, I would suggest that you submit a support case for this issue: http://ko.infragistics.com/support/submitrequest.aspx
Thank you!
With Me.UltraWebGrid1 .DisplayLayout.AddNewBox.Hidden = False .DisplayLayout.AddNewRowDefault.Visible = Infragistics.WebUI.UltraWebGrid.AddNewRowVisible.No .DisplayLayout.AddNewRowDefault.View = AddNewRowView.Top
.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes .DisplayLayout.AllowUpdateDefault = Infragistics.WebUI.UltraWebGrid.AllowUpdate.RowTemplateOnly
Dim template As ITemplate template = Page.LoadTemplate("RTS_People_Maint.ascx")
.Bands(0).RowEditTemplate = template .Bands(0).RowTemplateStyle.Height = Unit.Percentage(100) ' Add an extra column for a button to allow template editing
.Columns.Insert(0, "Edit") .Columns(0).Type = ColumnType.Custom .Columns(0).Width = Unit.Percentage(5) .Columns(0).Header.Title = "Analyst/Author Maintenance Options" .Columns(1).Width = Unit.Percentage(5) ' person id .Columns(1).Header.Caption = "ID" .Columns(2).Width = Unit.Percentage(0) ' org id .Columns(2).Hidden = True .Columns(3).Width = Unit.Percentage(10) ' org name .Columns(3).Header.Caption = "Org" .Columns(4).Width = Unit.Percentage(10) ' first name .Columns(4).Header.Caption = "First Name" .Columns(5).Width = Unit.Percentage(10) ' last name .Columns(5).Header.Caption = "Last Name" .Columns(6).Width = Unit.Percentage(10) ' title .Columns(6).Header.Caption = "Title" .Columns(7).Width = Unit.Percentage(10) ' email .Columns(7).Header.Caption = "Email" .Columns(8).Width = Unit.Percentage(10) ' phone .Columns(8).Header.Caption = "Phone" .Columns(9).Width = Unit.Percentage(10) ' status .Columns(9).Header.Caption = "Status" .Columns(10).Width = Unit.Percentage(10) ' analyst .Columns(10).Header.Caption = "Analyst" .Columns(11).Width = Unit.Percentage(10) ' author .Columns(11).Header.Caption = "Author" .DisplayLayout.Bands(0).Columns(0).Header.Caption = "" .Bands(0).AddButtonCaption = "Add New" End With
Yes that would seem an abvious answer but it is not the solution. Regardless of % widths.
I always have horizontal scrolling. The only way I can seem to
prevent the horiz scroll is to set fixed pixel widths which I dont want.
8.3.20083.1009
Hello Robert,
You should be able to set the widths of the grid columns so that they total 100% and have them display the full width of the grid. What NetAdvantage volume and build are you using?
This may be something you want to consider logging with Developer Support along with your page containing the WebGrid that you are having the issue with.