10 2016 档案
摘要:1. form 设置为 private 始终 只打开一个 2.NavBarControl尝试设置Item的属性LargeImageIndex的值,则发现没有任何变化,这是为什么呢?原来在设置这个属性之前还需要设置此Item所在Group的属性GroupStyle的值为LargeImageText。 3. xtraTabbedMdiManager1.SelectedPage = ...
阅读全文
posted @ 2016-10-30 20:45
刀小爱
摘要:// web config public class dbcr:DbContext { public dbcr() : base("name=constr") { } protected override void OnModelCreating(DbM...
阅读全文
posted @ 2016-10-29 08:43
刀小爱
摘要:@Html.ActionLink("index", "index"); @Html.ActionLink("zwj", "zsf", new { a = "1", b = "2" }, new { id = 10 }); @Html.DropDownList("city",null,new { id="zwjk"}); @using (Html.BeginForm("dd", "bbbb", ..
阅读全文
posted @ 2016-10-27 15:16
刀小爱
摘要:dataGridView1.DataSource = db.Class1.Where(u => u.id==123).ToList().Select(u => { return new { id=u.id}; }).ToList();
阅读全文
摘要://直接删除 KSBMB k1028 = new KSBMB() { KSBM = "1028"}; z1.Entry(k1028).State = System.Data.Entity.EntityState.Deleted; z1.SaveChanges(); // 必须dbcontext 上下文中有 才能删除 也就必须要查询 才能...
阅读全文
posted @ 2016-10-24 15:21
刀小爱
摘要:insert into zcy (pm,gg,kcsl,pym) output inserted.pym values ('111','dd',1,'ddd') SCOPE_IDENTITY 和 @@IDENTITY 返回在当前会话中的任何表内所生成的最后一个标识值。但是,SCOPE_IDENTITY 只返回插入到当前作用域中的值;@@IDENTITY 不受限于特定的作用域。 例如...
阅读全文
posted @ 2016-10-24 14:29
刀小爱
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System....
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Diagnostics; 7 8 namespace ConsoleApplication7 9...
阅读全文
posted @ 2016-10-20 14:15
刀小爱
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class Program { static void Main(s...
阅读全文
posted @ 2016-10-19 16:29
刀小爱
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(s...
阅读全文
摘要:public static object OpenFile(string fileName) { var fullFileName = string.Format("{0}\\{1}", Directory.GetCurrentDirectory(), fileName); if (!File.Exists(fullFileNam...
阅读全文
posted @ 2016-10-12 16:51
刀小爱
摘要:跟 属性 columnautowidth 效果不一样
阅读全文
摘要:private void textBox1_TextChanged(object sender, EventArgs e) { if ((sender as TextBox).Text.Length == 0) { DevExpress.Utils.ToolTipLocation tipLocat...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System....
阅读全文
该文被密码保护。
摘要:MsSqlConnectionParameters ms = new MsSqlConnectionParameters(); ms.AuthorizationType = MsSqlAuthorizationType.SqlServer; ms.Password = "**"; ms.UserNam...
阅读全文
摘要:gridLookUpEdit1.Text= "请输入..."; gridLookUpEdit1.Properties.NullText = "请输入..."; // TODO: 这行代码将数据加载到表“contactsDataSet1.Customers”中。您可以根据需要移动或删除它。 this.customersT...
阅读全文
摘要:gridView1.Columns[0].AppearanceCell.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; gridView1.Columns[0].AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlign...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System....
阅读全文
摘要:绑定的列和lookupedit 不要同名 *
阅读全文

浙公网安备 33010602011771号