Original article, reprint please indicate the source
Author: Boylee Origin: Http://BoyLee.net
ActiveReports and Ultrawebgrid are all using a more extensive. NET control, which is convenient, simple and powerful.
But there are few Chinese materials on the Internet, almost no, just think about the pain of using these two tools, there has been a simple introduction to the use of the Guide. Later in the blog Park to see a lot of activereports, but also wrote a lot of articles, so I decided to write a webgrid.
First install NetAdvantage, buy a business version of a friend can enter the registration code, I use unregistered, direct next skip. Unregistered can also be used, just after the probation period will jump out of the prompts to register the window.
After the installation, you can start our WebGrid trip, today, first of all to the simplest
1. Create a project of your own, add Infragistics.webui.ultrawebgrid.v3.1.dll to the reference. Here *.dll file names may be different because of version problems. Please modify it yourself (my example environment is xp+vs2003+ PowerTools netadvantage vol.2トライアル version, with the actual project used in a WebGrid as an example to explain)
2. Add the following code to the top of the *.aspx page to register the Ultrawebgrid control
<% @ Register TagPrefix = "Igtbl" Namespace = "Infragistics.WebUI.UltraWebGrid" Assembly = "infragistics.webui.u" ltrawebgrid.v3.1, version=3.1.20042.1046, Culture=neutral, PUBLICKEYTOKEN=7DD5C3163F2CD0CB "%>
of which assembly= "infragistics.webui.ultrawebgrid.v3.1, version=3.1.20042.1046, Culture=neutral, PublicKeyToken= 7DD5C3163F2CD0CB "The specific content depends on the version of NetAdvantage 2004. Other specific meaning believe that everyone should see the understand oh, I don't say more.
3.WebGrid Foreground Code:
< Igtbl:ultrawebgrid ID = "Uwgcustomer" style = "ime-mode:active" runat = "server" Width = "830px" Height = "188px" >
< Displaylayout stationarymargins = "Header" Allowsortingdefault = "Yes" Rowheightdefault = "21px" Version = " 4.00 "
Bordercollapsedefault = "separate" Name = "Uwgcustomer" tablelayout = "Fixed" nodatamessage = "means するデータがありません" & Gt
< Addnewbox Prompt = "Append" >
< Style borderwidth = "1px" BorderStyle = "Solid" BackColor = "Lightgray" >
< Borderdetails Colortop = "white" Widthleft = "1px" widthtop = "1px" Colorleft = "White" ></Borderde Tails >
</Style >
< ButtonStyle Cursor = "Hand" ></buttonstyle >
</Addnewbox >
< Pager Prevtext = "former へ" Nexttext = "Times" >
< Style borderwidth = "1px" BorderStyle = "Solid" BackColor = "Lightgray" >
< Borderdetails Colortop = "white" Widthleft = "1px" widthtop = "1px" Colorleft = "White" ></Borderde Tails >
</Style >
</Pager >
< Headerstyledefault verticalalign = "Bottom" BorderStyle = "Solid" horizontalalign = "Center" BackColor = "L Ightgray ">
< Borderdetails Colortop = "white" Widthleft = "1px" widthtop = "1px" Colorleft = "White" ></Borderde Tails >
</Headerstyledefault >
< FrameStyle Width = "830px" borderwidth = "1px" font-size = "10pt" font-names = "msゴシック" BorderStyle = "Solid"
Height = "188px" ></framestyle >
< Footerstyledefault borderwidth = "1px" BorderStyle = "Solid" BackColor = "Lightgray" >
< Borderdetails Colortop = "white" Widthleft = "1px" widthtop = "1px" Colorleft = "White" ></Borderde Tails >
&n