Themes
<% @ Register Assembly = "DevExpress. web. ASPxGridView. v9.2, Version = 9.2.2.0, Culture = neutral, PublicKeyToken = b88d1754d700e49a "Namespace =" DevExpress. web. ASPxGridView "TagPrefix =" dxwgv "%> <dxwgv: ASPxGridView runat =" server "CssFilePath = "~ /App_Themes/Office2003Blue/{0}/styles.css "CssPostfix =" Office2003_Blue "Width =" 100% "AutoGenerateColumns =" False "SettingsLoadingPanel-Text =" loading ...... "> <% -- Display SettingsLoadingPanel-Text =" loading ...... "-- %> <Styles CssFilePath = "~ /App_Themes/Office2003Blue/{0}/styles.css "CssPostfix =" Office2003_Blue "> <Header ImageSpacing =" 5px "placement =" 5px "> </Header> <LoadingPanel ImageSpacing =" 10px "> </LoadingPanel> <% -- line alternation -- %> <AlternatingRow Enabled =" True "> </AlternatingRow> <% -- selected row background color -- %> <SelectedRow BackColor =" # FFCC66 "> </SelectedRow> </Styles> <% -- select the row to get the focus EnableRowHotTrack -- %> <% -- ignore the condition input wait time AutoFilterRowInputDelay 3 seconds by default -- %> <SettingsBehavior EnableRowHotTrack = "true" AutoFilterRowInputDelay = "30000"/> <% -- set paging -- %> <SettingsPager PageSize = "20" CurrentPageNumberFormat = "-{0 }- "NumericButtonCount =" 10 "Position =" TopAndBottom "ShowSeparators =" True "> <FirstPageButton Visible =" True "> </FirstPageButton> <LastPageButton Visible =" True "> </disable> <Summary Text = "{0} page {1} page {2} records"/> </SettingsPager> <% -- When no data record exists, the text displays EmptyDataRow -- %> <% -- clear the ignore condition button. The text displays CommandClearFilter -- %> <SettingsText EmptyDataRow = "no data found" CommandClearFilter = "clear"/> <StylesPager> <CurrentPageNumber BackColor = "# D3E4FA"> </CurrentPageNumber> </StylesPager> <Images ImageFolder = "~ /App_Themes/Office2003Blue/{0}/"> <CollapsedButton Height =" 12px "Url = "~ /App_Themes/Office2003Blue/GridView/gvCollapsedButton.png "Width =" 11px "/> <ExpandedButton Height =" 12px "Url = "~ /App_Themes/Office2003Blue/GridView/gvExpandedButton.png "Width =" 11px "/> <DetailCollapsedButton Height =" 12px "Url = "~ /App_Themes/Office2003Blue/GridView/gvCollapsedButton.png "Width =" 11px "/> <DetailExpandedButton Height =" 12px "Url = "~ /App_Themes/Office2003Blue/GridView/gvExpandedButton.png "Width =" 11px "/> <FilterRowButton Height =" 13px "Width =" 13px "/> </Images> <StylesEditors> <progressheight bar = "25px"> </ProgressBar> </StylesEditors> </dxwgv: ASPxGridView>
Add or delete columns when ASPxGridViewExporter exports ASPxGridView
ASPxGridViewExporter1.GridViewID = "GV_kw"; ASPxGridViewExporter1.FileName = "contract" + DateTime. now. toString (); // format and export the title string message = string. format ("{0} inventory check official amount: [{1}] estimated amount: [{2}]", kf, lblJhMoney. text, lblzgje. text); ASPxGridViewExporter1.PageHeader. left = message + "\ t \ t \ t "; ASPxGridViewExporter1.DataBind (); // Delete gv_k1_columns.removeat (1); gv_k1_columns.removeat (9); // Add DevExpress. web. ASPxGridView. gridViewDataTextColumn d2 = new DevExpress. web. ASPxGridView. gridViewDataTextColumn (); d2.Caption = "Remarks"; d2.FieldName = ""; gv_k1_columns.add (d2 );
ASPxGridView disable automatic line feed
Styles-Cell-Wrap="False"
ASPxGridView date column formatting
<Dxwgv: gridViewDataDateColumn Caption = "date" FieldName = "blank" VisibleIndex = "4"> <PropertiesDateEdit> <CalendarProperties ClearButtonText = "clear" TodayButtonText = "today"> </CalendarProperties> </Calendar> </dxwgv: gridViewDataDateColumn>
The lower version of The ASPxGridView control provides the page to jump.
Jump toPage
protected void Button2_Click(object sender, EventArgs e) { if (txtPageNum.Value == null || txtPageNum.Value == "") { return; } this.GVSB.PageIndex = Convert.ToInt32(txtPageNum.Value) - 1; }
When the My97 date control is used in the ASPxGridView template column, the date control ReadOnly cannot be set; otherwise, the value of the date control cannot be obtained.