Grid Columns Lining Up Between Header and Detail Rows and Scroll Bars on Grid

3 replies. Last post: January 5, 2010 1:09 AM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
place DanielMember

For some reason, especially when we have a group by row, the column header borders do not match up with the detail columns. We have columns that are 1/2 inch off in some cases. How can we get these to line up? I have tried messing with the column properties to no avail.  All the samples look to line up fine and I can't find the magical setting that gets it to work.

Also, is there a way to remove the vertical scroll bar on the grid? We have a scroll bar onthe grid and one on window. In our case, it doesn't make sense to have it on the grid.

Here's the grid code.. Nothing happens in server side code.

<div> <ISWebGrid:WebGrid ID="WebGrid1" runat="server" UseDefaultStyle="True" DataSourceID="ObjectDataSource1" DefaultStyleMode="Elegant"> <LayoutSettings PagingExportMode="ExportAllData" AllowExport="Yes" Hierarchical="true" HierarchicalMode="Preload" HideColumnsWhenGrouped="Yes" AllowGrouping="Yes" ColumnFooters="Yes" PagingSize="30" PagingMode="ClassicPaging" InProgressUIBehavior="ChangeCursorToHourGlass" PagingDetectPartialGroupRows="true" AutoFitColumns="true" AllowFilter="Yes" ColumnFooterAggregateMode="CalculateAllData" ColumnSetHeaders="Yes"> </LayoutSettings> <RootTable GroupTotalVisible="true" GroupMode="Expanded" RowLayout="ColumnSet"> <GroupedColumns> <ISWebGrid:WebGridGroup ColumnMember="vchPlanID" SortOrder="Ascending"/> </GroupedColumns> <Columns> <ISWebGrid:WebGridColumn Caption="Rep ID" DataMember="vchPlanID" AllowGrouping="Yes" Name="vchPlanID" GroupRowInfoFormat="Rep ID: [value] ([count])"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Description" DataMember="vchLongName" AllowGrouping="Yes" Name="vchLongName" AllowSorting="Yes"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Acct Number" DataMember="vchAccountNumber" AllowGrouping="Yes" Name="vchAccountNumber" AllowSorting="Yes"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Account Name" DataMember="vchAccountName" AllowGrouping="Yes" Name="vchAccountName" AllowSorting="Yes"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn AggregateFunction="Custom" Caption="Market Value" DataMember="mMarketValue" DataType="System.Decimal" FooterText="" Name="mMarketValue" DataFormatString="c"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Quantity" DataMember="dQuantity" AllowSorting="Yes" Name="dQuantity" DataType="System.Decimal" AggregateFunction="Sum" FooterText="" DataFormatString="c"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Price" DataMember="mPrice" AllowSorting="Yes" Name="mPrice" DataType="System.Decimal" AggregateFunction="Sum" FooterText="" DataFormatString="c"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Security Type" DataMember="SecType" Name="SecType"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Ticker" DataMember="vchTicker" Name="vchTicker"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="CUSIP" DataMember="vchCUSIP" Name="vchCUSIP"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Gain/Loss" DataMember="mGainLosses" Name="mGainLosses" DataType="System.Decimal" AggregateFunction="Sum" FooterText="" DataFormatString="c"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="HH Name" DataMember="vchHHName" AllowGrouping="Yes" Name="vchHHName"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Asset Type" DataMember="vchAssetType" AllowGrouping="Yes" Name="vchAssetType"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Reg Type" DataMember="vchRegType" Name="vchRegType"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Est. Annual Income" DataMember="EstAnnualIncome" AllowSorting="Yes" Name="EstAnnualIncome" DataType="System.Decimal" AggregateFunction="Sum" FooterText="" DataFormatString="c"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Yield" DataMember="CurrentYield" Name="CurrentYield"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Short Name" DataMember="vchShortName" Name="vchShortName"> </ISWebGrid:WebGridColumn> </Columns> </RootTable> </ISWebGrid:WebGrid> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="Grids.Intersoft" SelectMethod="GetGridData"> </asp:ObjectDataSource> </div>

Thanks!

All times are GMT -5. The time now is 3:28 AM.
Previous Next