11 2013 档案

摘要:gridview:ShowViewCaption = TrueViewCation = "32435354354" 阅读全文
posted @ 2013-11-27 15:52 pnljs 阅读(578) 评论(0) 推荐(0)
摘要:读XmlDocument document = new XmlDocument();document.Load("Data\\books.xml");List bookList = new List();foreach (XmlElement book in document.DocumentElement.ChildNodes){ string isbn = book.GetAttribute("ISBN").ToString();//属性 string genre = book.GetAttribute("genre").ToSt 阅读全文
posted @ 2013-11-26 17:36 pnljs 阅读(185) 评论(0) 推荐(0)
摘要:USE [MTEMP]GO/****** Object: UserDefinedFunction [dbo].[GS] Script Date: 11/18/2013 12:19:10 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER FUNCTION [dbo].[GS](@Id INT) RETURNS NVARCHAR(4000)ASBEGIN DECLARE @SNames NVARCHAR(4000) SET @SNames = '' SELECT @SNames = @SNames+char(10)+ 阅读全文
posted @ 2013-11-25 13:45 pnljs 阅读(215) 评论(0) 推荐(0)
摘要:1,在Main中加入此语句DevExpress.UserSkins.BonusSkins.Register();SkinManager.EnableFormSkins();DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Seven Classic");Application.EnableVisualStyles();2,主窗口内加入此代码,然后在初始化时调用即可private void InitSkins(){ SkinHelper.InitSkinGallery(ribbonGalleryBarIt 阅读全文
posted @ 2013-11-22 17:45 pnljs 阅读(239) 评论(0) 推荐(0)
摘要:C#窗体中的TextBox 的MaxLength:与Nvarchar类似,不论是什么,最多只能为2。我我11我1 阅读全文
posted @ 2013-11-08 11:19 pnljs 阅读(298) 评论(0) 推荐(0)
摘要:Dev13.1 用的是DocumentViewer,上面的一排按钮,是自动生成的,生成方法为:加了DocumentViewer后,控件右上角有个小三角,点一下,在弹出框中选择"Create Standand ToolBar"就可以生成那一排按钮。form与Report绑定绑定:在Form1的Load事件中写XtraReport1 report1 = new XtraReport1();//这个是你建的一个报表report1.DS = ds;//自己写一个数据集就好了。report1.Init();//自定义的绑定方法,在下面可以看到。this.documentViewer1 阅读全文
posted @ 2013-11-07 14:41 pnljs 阅读(7950) 评论(5) 推荐(1)
摘要:需要用到void ReportLogForm_Deactivate(object sender, EventArgs e){ this.Close();} 阅读全文
posted @ 2013-11-05 14:45 pnljs 阅读(472) 评论(0) 推荐(0)
摘要:注意: 是GridView的Double而不是GridControlprivate void gridView1_DoubleClick(object sender, EventArgs e){ GridView detailGrid = (sender as GridView); GridHitInfo hitInfo = (detailGrid.CalcHitInfo((e as MouseEventArgs).Location)); if (hitInfo != null && (hitInfo.InRow || hitInfo.InRowCell) && 阅读全文
posted @ 2013-11-05 14:44 pnljs 阅读(1124) 评论(0) 推荐(1)