[原] XAF ListView 凍結列】的更多相关文章

using System; using System.ComponentModel; using System.Collections.Generic; using System.Diagnostics; using System.Text; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Actions; using DevExpress.Persistent.Base; using DevExpress.ExpressApp.…
using System; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Win.Editors; using DevExpress.Utils.Menu; using DevExpress.XtraGrid.Menu; using DevExpress.XtraGrid.Views.Grid; namespace E968.Module { public class ListViewFooterMenuViewControll…
[转]   [WPF]ListView点击列头排序功能实现 这是一个非常常见的功能,要求也很简单,在Column Header上显示一个小三角表示表示现在是在哪个Header上的正序还是倒序就可以了.微软的MSDN也已经提供了实现方式.微软的方法中,是通过ColumnHeader Template实现的,一共要维护至少两个Header Template,一个显示正三角,一个显示倒三角.在用户点击Header的时候同时切换使用的Template.如果你的ListView只提供Sort功能,这个方法…
為了提升用戶使用體驗,特擴展此功能(來源與Xafari Framework).1.可在模型編輯器中設置是否啓用,默認啓用.2.DataAccessMode為Client模式才啓用.其它模式自動關閉.3.詳見代碼. 4.當有篩選條件時有Bug,還有待解決,才能上綫使用! using DevExpress.ExpressApp; using DevExpress.ExpressApp.DC; using DevExpress.ExpressApp.Model; using System; using…
using System; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Win.Editors; using DevExpress.Utils.Menu; using DevExpress.XtraGrid.Menu; using DevExpress.XtraGrid.Views.Grid; namespace CommonModule.Common.Controlers { public class ListViewFoo…
First, I suggest that you review the following topic to learn how to show a custom set of objects in a ListView: How to: Display a List of Non-Persistent Objects.To create non-persistent objects based on a stored procedure, use the Session.GetObjects…
2014年好久没有更新Blog了,工作调换了,很少用XAF,但还是很关注XAF的发展和学习,对中国的中小企业数据管理软件开发真的太实用了!! 功能比较简单,但很实用,直接上图和代码! ListView處於ListViewAndDetailView編輯模式 using System; using System.Linq; using System.Text; using DevExpress.ExpressApp; using DevExpress.Data.Filtering; using Sy…
SQL Server中,写存储过程,时常会碰到这样一个需求:从某个表中取某一列,然后需要将这一列数据以某种形式拼成一个字符串,以供后面使用,下面这种方法能够实现此需求. --取说明书模块枚举,结果格式为:'dmtContraindication|dmtAttentionDesc|' declare @enumArray varchar(max) set @enumArray='' select @enumArray=@enumArray+cast( t.DrugFieldContrast_Enu…
/// <summary> /// This class is an implementation of the 'IComparer' interface. /// </summary> public class ListViewColumnSorter : IComparer { /// <summary> /// Specifies the column to be sorted /// </summary> private int ColumnToS…
1.ListView 添加日期筛选下拉选择,选择指定,可指定日期范围 2.Code using DevExpress.Data.Filtering; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Actions; using DevExpress.ExpressApp.DC; using DevExpress.ExpressApp.Editors; using DevExpress.ExpressApp.SystemModule…
问题比较简单,直接上代码. private Image _Cover; [Size(SizeAttribute.Unlimited), ValueConverter(typeof(ImageValueConverter))] public Image Cover { get { ) { using (MemoryStream stream = new System.IO.MemoryStream(_Photo)) { System.Drawing.Image image = System.Dra…
How to: Disable Property Editors Based on a Business Rule // Developer Express Code Central Example: // How to: Disable Property Editors Based on a Business Rule // // This example demonstrates how to hide and disable property editors via the // Cond…
做过VB,对添加某一行中的某一列的背景颜色 ,和文字颜色,来表明某种意义的时候,会有添加不上去的情况 abc = Nothing abc = New ListViewItem.ListViewSubItem abc.Text = "欠勤" abc.BackColor = Color.Black abc.ForeColor = Color.White lvi.SubItems.Add(abc) 这里只需要加一句话: lvi.UseItemStyleForSubItems = False…
目录[-] (1)添加HeaderView之后尺寸布局被忽略. (2)添加HeaderView之后导致OnItemClickListener的position移位 (3)LayoutInflater的infalte() (1)添加HeaderView之后尺寸布局被忽略. 通常添加头部的方法是 ? 1 2 3 LayoutInflater lif = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View h…
此方法适用于C/S及B/S,无需分别写在web和win中. Module下新建ViewController,代码如下: public partial class GongZuoJiaoShen_YinCangGongJuLan : ViewController<DetailView> { public GongZuoJiaoShen_YinCangGongJuLan() { InitializeComponent(); // Target required Views (via the Tar…
void ViewControlsCreated(object sender, EventArgs e) { foreach (StringPropertyEditor item in view.GetItems<StringPropertyEditor>()) { if (((People)View.CurrentObject).Type != null && ((People)View.CurrentObject).Type.Name == "male"…
void uGrdAllFlight_InitializeRow(object sender, InitializeRowEventArgs e) { /***********TEST START**************/ ].Columns["START_TIME"].Hidden = true; ].Columns["FLIGHT_DATE"].Hidden = true; /***********TEST END**************/ }…
object Form1: TForm1 Left = Top = Caption = 'Form1' ClientHeight = ClientWidth = Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = - Font.Name = 'Tahoma' Font.Style = [] OldCreateOrder = False OnCreate = FormCre…
DataGrid中,只要不设置DataGrid的宽度和列宽度,或者将宽度设置为Auto,那么表格就会根据内容自动调整宽度,以显示所有内容.但如果是ListView,按以上方法设置,却达不到列宽自动调整的效果, 列宽在控件第一次加载的时候已经确定,之后不会随着某列数据长度的增加和减少而改变列宽.找了很多方法,感觉下面的方法比较简单和实用,在每次增加或者删除数据集合的时候,将 GridViewColumn 的 Width 属性 设置为 无效值,触发其自适应效果. 原贴地址:https://blog.…
单击列头实现排序,首先在羡慕中添加下面的帮助实现的类:具体的代码: using System; using System.Collections; using System.Windows.Forms; namespace Common { /// <summary> /// 对ListView点击列标题自动排序功能 /// </summary> public class ListViewHelper { /// <summary> /// 构造函数 /// </…
用表格创建数组来实现. import win.ui; /*DSG{{*/ var winform = ..win.form( bottom=399;parent=...;right=599;text="aardio Form" ) winform.add( listview={ bgcolor=16777215;bottom=295;right=547;left=27;top=35;z=1;edge=1;cls="listview" }; button={ bott…
<!--ListView不显示列标题--> <Style TargetType="{x:Type GridViewColumnHeader}"> <Setter Property="HorizontalContentAlignment" Value="Center"/> <Setter Property="FrameworkElement.Visibility" Value="…
问题描述 WPF自带的ListView和DataGrid控,都提供了数据分组的支持,并可以对分组的Header进行自定义.但是,如果想在每个分组的Header中,显示出本分组的"小计"就不是一件容易的事情了. 假设要用一个ListView用于显示全校学生成绩.按班级分组,并在分组头中显示班级平均分. 最终效果大致如下: 图1. 在分组的Header中显示本分组的Aggregation 怎么样?有什么思路?实现的难点有: Group Header中的第一例显示为分组的名称. Group…
分页     在前一部分开始时介绍的原 HTML 设计中内含分页和排序,所以根据规范完整实现该网格的任务尚未完成.我们先分页,然后再排序. ListView 控件中的分页通过引入另一个新控件 DataPager 实现.通过在单独的控件中隔离分页,DataPager 将分页 UI 与 ListView 用于呈现数据的页面分离.这意味着您可以在页面的任何位置放置分页 UI,并且可以创建任意多个 DataPager 控件.分页控件一个常见的应用是在数据网格的顶部和底部提供分页界面,这样用户不必滚动网格…
您将须要用到的独有数据绑定控件. Fritz Onion 代码下载位置: ExtremeASPNET2008_03.exe (192 KB) Browse the Code Online  文件夹 ListView 基础 ListView 和 CSS 分页 排序.编辑.插入和删除 分组 開始运行 ListView 随 Visual Studio® 2008 一同公布的 ASP.NET 3.5 引入了新的数据绑定控件—ListView.我知道您正在想什么:为什么 ASP.NET 里还须要还有一个数…
摘自网络地址:http://msdn.microsoft.com/zh-cn/magazine/cc337984.aspx ListView 基础 ListView 是模板驱动的控件,这意味着它默认情况下不会呈现任何数据——您必须以模板的形式完全指定希望它呈现的 HTML.与大多数模板控件类似,ItemTemplate 将成为您工作的重点,您需要将绑定数据集中每一行不断重复的 HTML 内容放在 ItemTemplate 里. ListView 中的新功能,也是它与其它控件的真正不同之处在于引进…
目的是点击某个按钮把一条数据从 itemssource中移除 private void delete_Click_1(object sender, RoutedEventArgs e) { DtsInterfaceItemInfo dtsfice= (DtsInterfaceItemInfo)(sender as FrameworkElement).DataContext;   获取点击的那列的按钮获取该列的数据 //(this.listview.ItemsSource as List<DtsI…
聚合只是將一些實體(Entity)與值對象(Value Object)聚集起來的對象樹嗎?? 有些途徑可能使我們設計出不正確的聚合模型, 如:可能為了對象組合上的方便而將聚合設計的很大;也可能設計的聚合過於貧瘠而喪失了保護真正不變條件(業務規則)的目的. "實現領域驅動設計"一書的作者,提供了幾個聚合設計原則...... 在一致性邊界之內建模真正的不變條件 這裡的不變條件指的是一個業務規則,該規則應該總是保持一致的.存在多種類型的一致性,事務一致性(高一致性),最終一致性等.在討論不變條件時,就…
reference to : http://blog.csdn.net/welovesunflower/article/details/7926512 工作中遇到一个需求,对ListView某一项操作后刷新ListView,但是如果直接刷新,界面上ListView从第一列开始显示,用户体验不好,于是在网上搜了一些恢复LIstView滑动位置的方法.解决办法如下: 1 : // 设置ListView到记录的位置 mListView.setSelection(mPosition); mListVie…