(Add a reference Microsoft.VisualBasic) using System.ComponentModel; using System.Collections; using System.Web.UI; using System.Drawing; using System.Web; using Microsoft.VisualBasic; using System.Web.UI.WebControls;
namespace XYScrollDataGridcsharp {[DefaultProperty ( "Text"), ToolboxData ( "<{0}: XYScrollDataGridcsharp runat = server> {0}: XYScrollDataGridcsharp>")] public class XYScrollDataGridcsharp: System.Web.UI.WebControls.DataGrid {private Unit MscrollWidth; Private DataModetype MDataMode; Private ShowscrollDataMode MshowscrollDataMode; Private Unit Ymscrollwidth;
Public Enum ShowscrollDataMode {Xscroll, Yscroll, Both, None,} PUBLIC ENUM DATAMODETYPE {可 変 変 変 変 変 変 変 s,}
[NotifyParentProperty (true), Browsable (false), EditorBrowsable (EditorBrowsableState.Advanced)] public override bool AutoGenerateColumns {get {return base.AutoGenerateColumns;} set {base.AutoGenerateColumns = false;}} [NotifyParentProperty (true)] public override bool AllowCustomPaging {get {return;} set {base.allowcustompaging = value;}}
[NotifyParentProperty] Public override bool allowpaging {get {return;} set {base.allowpaging = value;}}
[NotifyParentProperty (true), Browsable (false), EditorBrowsable (EditorBrowsableState.Advanced)] public override bool AllowSorting {get {return base.AllowSorting;} set {base.AllowSorting = value;}}
[NotifyParentProperty] Public override TableItemStyle AlternatingItemStyle {Get {Return Base.alternatingItemStyle;}}
[NotifyParentProperty (true)] public override Color BackColor {get {return base.BackColor;} set {base.BackColor = value;}} [NotifyParentProperty (true)] public override string BackImageUrl {get {return base.BackImageUrl;} set { Base.backimageurl = value;}}
[NotifyParentProperty (TRUE)] Public override color bordercolor {get {return base.bordercolor;} set {base.bordercolor = value;}}
[NotifyParentProperty] public override border {retturn base.bordersty;} set {base.borderstyle = value;}}
[NotifyParentProperty] public override unit borderwidth {get {return base.borderwidth;} set {base.borderwidth = value;}}
[NotifyParentProperty] public override int cellpadding {get {return base.cellpadding;} set {base.cellpadding = value;}}
[NotifyParentProperty] public override int cellspacing {get {return base.cellspacing;} set {base.cellspacing = value;}}
[NotifyParentProperty (TRUE)] Public Override DataGridColumnCollection Column {Get {Return Base.columns;}}
[NotifyParentProperty (TRUE)] public override int edititemindex {get {return;} set {base.edititemindex = value;}}
[NotifyParentProperty] Public override TableItemStyle EditItemStyle {Get {Return Base.editItemStyle;}}
[NotifyParentProperty (TRUE)] public override bool enabled {get {return.enabled;} set {base.enabled = value;}}
[NotifyParentProperty (true)] public override TableItemStyle FooterStyle {get {return base.FooterStyle;}} [NotifyParentProperty (true)] public override Color ForeColor {get {return base.ForeColor;} set {base.ForeColor = value;}}
[NotifyParentProperty] Public override gridlines gridlines {get {return base.gridlines;} set {base.gridlines = value;}}
[NotifyParentProperty] Public override TableItemStyle Headerstyle {Get {Return Base.Headerstyle;}}
[NotifyParentProperty] public override unit height {get {return base.height;} set {base.Height = value;}}
[NotifyParentProperty (TRUE)] Public override horizontalalign horizontalalign {get {return base.horizontalalign;} set {base.horizontalalign = value;}}
[NotifyParentProperty] Public override TableItemStyle ItemStyle {Get {Return Base.ItemStyle;}}
[NotifyParentProperty (TRUE)] Public override DataGridPagerstyle Pagerstyle {Get {Return Base.PagersTyle;}}
[NotifyParentProperty] public override int page.pageSize;} set {base.pageSize = value;}}}}}
[NotifyParentProperty (TRUE)] public override bool showfooter {get {returnrate.showfooter;} set {base.showfooter = value;}}
[NotifyParentProperty] public override bool showhead {get {return base.showheader;} set {base.showheader = value;}}
[NotifyParentProperty] public override bool visible {get {ras.visible;} set {base.visible = value;}}
[NotifyParentProperty (true)] public override Unit Width {get {return base.Width;} set {base.Width = value;}} [NotifyParentProperty (true)] public override string CssClass {get {return base.CssClass;} set { Base.cssclass = value;}}
[Category ( "holds one then selected Ze"), DefaultValue (typeof (Unit), "0px"), Description ( "su ku ro Hikaru の web")] public Unit YScrollBarHeight {get {return ymScrollWidth;} set {ymScrollWidth = value;}}
[Category ("モ モ ド ド ド"), DefaultValue ("ロ ー ル")] public unit xscrollbarwidth {get {return mscrollwidth;} set {mscrollwidth = value;}}
[Category ("/ U30E2 / U30FC / U30C9 / U9078 / U629E"), Description ("/ U56FA / U5B9A / U884C / U306E / U500B / U6570"), DefaultValue (0)] public int fixedcolumn {get {ix (this. mShowScrollDataMode == ShowScrollDataMode.XScroll) {return this.mFixedColumns;} return 0;} set {if (! this.mShowScrollDataMode = ShowScrollDataMode.XScroll) {return;} if ((this.Columns.Count [Category ( "holds one then selected Ze"), DefaultValue (typeof (ShowScrollDataMode), "XScroll"), Description ( "XScroll")] public ShowScrollDataMode ShowScrollMode {get {return mShowScrollDataMode;} set {mShowScrollDataMode = value;}} Protected Override Void Render (HSLTEXTWRITER WRITER) {Hashtable HaashTable1 = New HashTable (); HashTable1.Add ("Z-Index", this.style ["Z-Index"]); Hashtable1.Add ("Left", this.style ["Left"]); Hashtable1.Add ("position", this.style ["position"]); Hashtable1.Add ("TOP", this.style ["TOP"]); this.style.remove (" Z-index "); this.style.remove (" left "); this.style.remove (" position "); this.style.remove (" TOP "); Writer.write (" Private void fixedcolumndataGrid (htmlTextWriter output) {string text2; string text4; text2 = "; text4 =" "; bool [] flagarray1 = new bool [(this.column.count - 1) 1]; INT Num7 = this.columns.count - 1; For (int NUM2 = 0; Num2 <= Num7; Num2 ) {FlagarRay1 [Num2] = this.columns [Num2] .visible;} int Num1 = 0; int Num6 = this.mfixedColumns - 1; for (int Num3 = 0 Num3 <= NUM6; Num3 ) {INT Num5 = this.columns.count - 1; for (int Num4 = Num1; Num4 <= Num5; Num4 ) {if (this.columns [Num4] .visible) {text4 = system .Convert.tostring (Conversion.val (TEXT4) Conversion.val (this.columns [Num4] .Headerstyle.Width.toString ())); Num1 = Num4 1; Break;}}} text4 = system.convert. TOSTRING (Conversion.val (TEXT4) 1) (THIS.Cellspacing) * this.mfixedColumn); if (this.mfixedColumns == 0) {text4 = "0";} string text5 = this .mscrollwidth.toString (); string text3 = this.mscrollwidth.tostring (); this.outputLayout (Text4, Text5, Text2, text3, flagarray1, output);} private void OutPutLayout (string widthOne, string widthTwo, string heightOne, string heightTwo, bool [] visiableColumn, HtmlTextWriter output) {output.Write ( "