NetAdvantage 笔记

1.UltraControlBase Class Members

  1.BeginUpdate Method

    Sets the IsUpdating flag to true which prevents painting.

    This is used to optimize performanance while setting a number of properties or adding a number of items (e.g. nodes in a tree control) so that all paint messages are ignored until EndUpdate is called.

  2.EndUpdate() Method

    Resets the IsUpdating flag to false and invalidates the control

    This method must be called after BeginUpdate. If BeginUpdate was called without a subsequent call to EndUpdate the control will not draw itself.

  3.EndUpdate(Boolean) Method

    Resets the IsUpdating flag to false and optionally invalidates the control.

    True to invalidate the control and dirty the child elements; otherwise false.

    Calling this method passing in false should only be done when it is known that the changes made between the BeginUpdate and EndUpdate calls did not require invalidation or dirtying of the elements or when the invalidation is being handled by the programmer.

  4.Update Method

    Causes the control to redraw the invalidated regions.

2.UltraGrid Class Members

  1.UpdateData Method

    Updates (commits) any modified information.

    The UpdateData method updates any modified information in the grid, sending it to the data provider. When the update is complete, any rows that were marked as having modified data will have that mark cleared. The DataChanged property will be set to False.

    Normally, the grid handles the updating of data automatically based on the UpdateMode property, so there will be few situations in which you will need to invoke this method. The major exception is when you want to update the data in response to an event that does not cause the grid to lose focus. For example, clicking on a toolbar button. Since toolbars do not typically take focus, the grid will not send any data to the data provider until you invoke the UpdateData method.

    Note that if a cell in the grid is currently in edit mode, this method will not commit the changes to that cell. To handle this, you may want to call the PerformAction method and specify the ExitEditMode action. This allows you to attempt to take the cell out of edit mode and check to make sure this process is successful before calling UpdateData.

  2.Refresh Method

    Overridden. Forces the control to invalidate its client area and immediately redraw itself and any child controls.

    Refresh method re-draws the control. Typically calling this method is not necessary since UltraGrid will redraw itself automatically whenever data or settings change that affect the UltraGrid display. This is useful when for example the data source doesn‘t support change notifications and as a result when the data changes the UltraGrid doesn‘t redraw the display. In such a scenario this method can be called to redraw the UltraGrid.

  3.PerformAction Method

    Simulates user interaction with the control.   

    Invoke this method to simulate an action the user can perform.

    Many actions are only appropriate in certain situations; if an action is inappropriate, it will not be performed. For example, attempting to delete rows by performing the DeleteRows action (37 - KeyActionDeleteRows) will have no effect if no rows are selected. Similarly, an attempt to toggle a cell‘s dropdown list by performing a droptown toggle action (14 - KeyActionToggleDropdown) will also be ignored if the column does not have a dropdown list associated with it.

    You can use the CurrentState property to determine the state of the control when the action is about to be performed.

3.DataTable

  1.AcceptChanges 方法

    提交自上次调用 AcceptChanges 以来对该表进行的所有更改。

    调用 AcceptChanges 时,任何仍处于编辑模式的 DataRow 对象将成功结束其编辑。 DataRowState 也发生更改:所有 Added 和 Modified 行都变为 Unchanged,Deleted 行则被移除。

    在您尝试使用 DbDataAdapter.Update 方法更新 DataSet 之后,通常会对 DataTable 调用 AcceptChanges 方法。

4.UltraGridCell Class Members

  1.Text Property

    Returns the text of the cell. If the cell is in edit mode, it returns the text in the editor being used for editing the cell.

  2.Value Property

    Returns or sets the underlying data value of a cell. This property is not available at design-time.

    Use this property to retrieve or modify a cell‘s value. When the value of a cell is changed, the BeforeCellUpdate and the AfterCellUpdate events are generated and the cell‘s DataChanged property is set to True. Note that the cell‘s new value is not necessarily committed to the data source when this property is set, however, since various factors such as the type of record locking employed by the data source, as well as the value of the UpdateMode property, can affect when the actual update occurs.

    The OriginalValue property of the cell can be used to determine the cell‘s value before it was changed.

    The GetText method can be invoked to return the formatted value of a cell.

5.UltraGridRow Class Members

  1.GetCellText Method

    Retruns the text that‘s displayed in the cell.

  2.GetCellValue Method

    Returns the data value for a cell from the database

	// UltraGridCell.Text property returns the same text as returned by GetCellText below
	// except when the cell is in edit mode in which case the UltraGridCell.Text returns the
	// current text that the user has entered in the cell while UltraGridColumn.GetCellText
	// returns the cell‘s value that‘s in the bound list converted to text. NOTE: The same
	// doesn‘t hold true for UltraGridCell.Value and UltraGridColumn.GetCellValue where both
	// return the values from the bound list regardless of whether the cell is in edit mode and
	// the user has modified the cell‘s value.

6.UltraGridColumn Class Members

  1.Format Property

    Returns or sets a string used to control the formatting of displayed text.

    The Format property is similar to the Visual Basic Format function, and supports all of the named arguments and literal strings supported by that function when the UltraGrid is being used in Visual Basic. In other host environments, the Format property provides a subset of theFormat function‘s capabilites, including the use of named arguments.

    The Format property applies only to cells that are not in edit mode.

    The underlying .NET formatting mechanism is used to format the value. See .NET help for more information regarding list of the named formats that are supported.

时间: 2024-10-27 08:09:59

NetAdvantage 笔记的相关文章

【安全牛学习笔记】

弱点扫描 ╋━━━━━━━━━━━━━━━━━━━━╋ ┃发现弱点                                ┃ ┃发现漏洞                                ┃ ┃  基于端口五福扫描结果版本信息(速度慢)┃ ┃  搜索已公开的漏洞数据库(数量大)      ┃ ┃  使用弱点扫描器实现漏洞管理            ┃ ╋━━━━━━━━━━━━━━━━━━━━╋ [email protected]:~# searchsploit Usage:

51CTO持续更新《通哥的运维笔记》

<通哥的运维笔记>将持续在51CTO网站更新,希望大家多多关注.互相学习,后期,我将会退出<通哥的运维笔记>系列视频教程,希望带给大家最大的收获,帮助大家更好的学习.进步.<通哥的运维笔记>主要从linux系统管理.虚拟化.cloudstack云平台以及网络管理之CCNA.CCNP.CCIE,等等方面深入讲解.

WPF笔记整理 - Bitmap和BitmapImage

项目中有图片处理的逻辑,因此要用到Bitmap.而WPF加载的一般都是BitmapImage.这里就需要将BitmapImage转成Bitmap 1. 图片的路径要用这样的,假设图片在project下的Images目录,文件名XXImage.png. pack://application:,,,/xxx;component/Images/XXImage.png 2. 代码: Bitmap bmp = null; var image = new BitmapImage(new Uri(this.X

java String 类 基础笔记

字符串是一个特殊的对象. 字符串一旦初始化就不可以被改变. String s = "abc";//存放于字符串常量池,产生1个对象 String s1=new String("abc");//堆内存中new创建了一个String对象,产生2个对象 String类中的equals比较字符串中的内容. 常用方法: 一:获取 1.获取字符串中字符的个数(长度):length();方法. 2.根据位置获取字符:charAt(int index); 3.根据字符获取在字符串中

vector 学习笔记

vector 使用练习: /**************************************** * File Name: vector.cpp * Author: sky0917 * Created Time: 2014年04月27日 11:07:33 ****************************************/ #include <iostream> #include <vector> using namespace std; int main

学习笔记之邮件发送篇

用脚本语言发送邮件是系统管理员必备技能 对系统定期检查或者当服务器受到攻击时生成文档和报表. 发布这些文档最快速有效的方法就是发送邮件. python中email模块使得处理邮件变得比较简单 发送邮件主要用到了smtplib和email两个模块,这里首先就两个模块进行一下简单的介绍: 本段摘录于    http://www.cnblogs.com/xiaowuyi/archive/2012/03/17/2404015.html 1.smtplib模块 smtplib.SMTP([host[, p

15.1-全栈Java笔记:Java事件模型是什么?事件控制的过程有哪几步??

应用前边两节上一章节的内容,大家可以完成一个简单的界面,但是没有任何的功能,界面完全是静态的,如果要实现具体功能的话,必须要学习事件模型. 事件模型简介及常见事件模型 对于采用了图形用户界面的程序来说,事件控制是非常重要的. 一个源(事件源)产生一个事件并把它(事件对象)送到一个或多个监听器那里,监听器只是简单地等待,直到它收到一个事件,一旦事件被接收,监听器将处理这些事件. 一个事件源必须注册监听器以便监听器可以接收关于一个特定事件的通知. 每种类型的事件都有其自己的注册方法,一般形式为: v

Java设计模式学习笔记,一:单例模式

开始学习Java的设计模式,因为做了很多年C语言,所以语言基础的学习很快,但是面向过程向面向对象的编程思想的转变还是需要耗费很多的代码量的.所有希望通过设计模式的学习,能更深入的学习. 把学习过程中的笔记,记录下来,只记干货. 第一部分:单例模式的内容 单例模式:类只能有一个实例. 类的特点:1.私有构造器:2.内部构造实例对象:3.对外提供获取唯一实例的public方法. 常见的单例模式实现有五种形式: 1.饿汉式. 2.懒汉式. 3.双重检查锁式. 4.静态内部类式. 5.枚举式. 以下分别

Caliburn.Micro学习笔记(一)----引导类和命名匹配规则

Caliburn.Micro学习笔记(一)----引导类和命名匹配规则 用了几天时间看了一下开源框架Caliburn.Micro 这是他源码的地址http://caliburnmicro.codeplex.com/ 文档也写的很详细,自己在看它的文档和代码时写了一些demo和笔记,还有它实现的原理记录一下 学习Caliburn.Micro要有MEF和MVVM的基础 先说一下他的命名规则和引导类 以后我会把Caliburn.Micro的 Actions IResult,IHandle ICondu