惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Forbes - Security
Forbes - Security
WordPress大学
WordPress大学
P
Proofpoint News Feed
T
Threat Research - Cisco Blogs
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
Spread Privacy
Spread Privacy
D
Darknet – Hacking Tools, Hacker News & Cyber Security
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
P
Privacy International News Feed
A
About on SuperTechFans
T
Tailwind CSS Blog
I
InfoQ
S
Securelist
云风的 BLOG
云风的 BLOG
罗磊的独立博客
Recent Announcements
Recent Announcements
T
The Exploit Database - CXSecurity.com
B
Blog RSS Feed
V
Visual Studio Blog
Know Your Adversary
Know Your Adversary
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
腾讯CDC
Cyberwarzone
Cyberwarzone
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
博客园 - 【当耐特】
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
S
Secure Thoughts
博客园 - 司徒正美
J
Java Code Geeks
Y
Y Combinator Blog
Google Online Security Blog
Google Online Security Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
Help Net Security
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Project Zero
Project Zero
T
Tenable Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tor Project blog
MyScale Blog
MyScale Blog
Scott Helme
Scott Helme
小众软件
小众软件
K
Kaspersky official blog

博客园 - ymz

C#异常的一些使用原则 【转】[翻译]Visual Studio2008的新功能:代码度量 【转】也谈c#调用C++的DLL找不到入口点 【摘】异源数据转换与FDO数据访问 线程同步 线程异步 【转】ArcEngine中创建自定义工具 【转贴】利用 Javascript 获取 URL 参数(适合IE、FF) - ymz 【转】HTML标签大全 MapGuide常见错误解决方法 集合类及泛型 一个网站系统的经验 frameset学习摘录 【转】如何使用.NET配置文件by沐枫小筑 【转】Notes on the Eclipse Plug-in Architecture 【转】理解session机制 困扰了一天的字符集转换问题 【转】Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it 【转】获取GridView单元格值的通用函数
Develope express学习
ymz · 2009-04-08 · via 博客园 - ymz

前言:

当前使用的是6.25,随着学习的积累不断更新

问题部分

grid
group的时候如果是数值类型,如何实现按值的区域分组

TreeList
绑定模式时,如何显示根节点的column?

公共工具部分

Repository:

有两种Repository,即internal repository和external repository。二者的区别在于,能被控件使用的个数上(internal repository只能用在一个控件上,而external repository可以用在多个控件里)。也就是说internal 和external是相对于某一个控件而言的。

要在多个控件内使用,则需持久化在控件外部,这是要用到PersistentRepository。下面是doc自带的示例:

//Add a repository item corresponding to a combo box editor to the persistent repository
    RepositoryItemComboBox riCombo = new RepositoryItemComboBox();
    riCombo.Items.AddRange(new string[] {"Cash", "Visa", "Master", "Am.Express" });
    persistentRepository1.Items.Add(riCombo);

    //Link the persistent repository to two grid controls
    gridControl1.ExternalRepository = persistentRepository1;
    gridControl2.ExternalRepository = persistentRepository1;

    //Now you can define the repository item as an inplace editor of columns for the two grids
    (gridControl1.MainView as GridView).Columns["PaymentType"].ColumnEdit = riCombo;
    (gridControl2.MainView as GridView).Columns["PaymentType"].ColumnEdit = riCombo;


控件部分

Grid:
Grid views support the grouping feature, which means that some data rows can be hidden within collapsed groups. In such views, the BaseView.RowCount property value identifies the number of non-hidden rows,也就是说RowCount所指的行数不是数据源中的实际行数,而是在grid控件中显示的行数。

Note that in MultiSelect, the focused row is not always selected. The array of selected row handles, that is returned by the ColumnView.GetSelectedRows method, may not contain the focused row handle, which is identified by the ColumnView.FocusedRowHandle property.
也就是说select和focuse并不是一回事。

当启用SelectionChanged事件时,若要选择多个选项而不想每次都触发SelectionChanged事件,可以通过BaseView.BeginSelection/BaseView.EndSelection来实现。

Editor:

   ComboBoxEditor

         实现DropDownList模式:在Properties下将TextEditStyle改为DisableEditor