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.
NetAdvantage 笔记的更多相关文章
- asp.net、mvc、ajax、js、jquery、sql、EF、linq、netadvantage第三方控件知识点笔记
很简单,如下: 父页面:(弹出提示框) function newwindow(obj) { var rtn = window.showModalDialog('NewPage.htm','','sta ...
- git-简单流程(学习笔记)
这是阅读廖雪峰的官方网站的笔记,用于自己以后回看 1.进入项目文件夹 初始化一个Git仓库,使用git init命令. 添加文件到Git仓库,分两步: 第一步,使用命令git add <file ...
- js学习笔记:webpack基础入门(一)
之前听说过webpack,今天想正式的接触一下,先跟着webpack的官方用户指南走: 在这里有: 如何安装webpack 如何使用webpack 如何使用loader 如何使用webpack的开发者 ...
- SQL Server技术内幕笔记合集
SQL Server技术内幕笔记合集 发这一篇文章主要是方便大家找到我的笔记入口,方便大家o(∩_∩)o Microsoft SQL Server 6.5 技术内幕 笔记http://www.cnbl ...
- PHP-自定义模板-学习笔记
1. 开始 这几天,看了李炎恢老师的<PHP第二季度视频>中的“章节7:创建TPL自定义模板”,做一个学习笔记,通过绘制架构图.UML类图和思维导图,来对加深理解. 2. 整体架构图 ...
- PHP-会员登录与注册例子解析-学习笔记
1.开始 最近开始学习李炎恢老师的<PHP第二季度视频>中的“章节5:使用OOP注册会员”,做一个学习笔记,通过绘制基本页面流程和UML类图,来对加深理解. 2.基本页面流程 3.通过UM ...
- NET Core-学习笔记(三)
这里将要和大家分享的是学习总结第三篇:首先感慨一下这周跟随netcore官网学习是遇到的一些问题: a.官网的英文版教程使用的部分nuget包和我当时安装的最新包版本不一致,所以没法按照教材上给出的列 ...
- springMVC学习笔记--知识点总结1
以下是学习springmvc框架时的笔记整理: 结果跳转方式 1.设置ModelAndView,根据view的名称,和视图渲染器跳转到指定的页面. 比如jsp的视图渲染器是如下配置的: <!-- ...
- 读书笔记汇总 - SQL必知必会(第4版)
本系列记录并分享学习SQL的过程,主要内容为SQL的基础概念及练习过程. 书目信息 中文名:<SQL必知必会(第4版)> 英文名:<Sams Teach Yourself SQL i ...
随机推荐
- iOS 深入理解RunLoop
RunLoop 是 iOS 和 OSX 开发中非常基础的一个概念,这篇文章将从 CFRunLoop 的源码入手,介绍 RunLoop 的概念以及底层实现原理.之后会介绍一下在 iOS 中,苹果是如何利 ...
- 开源调度框架Quartz最佳实践
开源调度框架Quartz最佳实践 Quartz是一个Java调度框架,当前的最新版本为2.2.1. 以Quartz 2.2.1版为例,Quartz最佳实践(用于生产系统)总结如下: 1.跳过更新检查Q ...
- 源代码Log
MVC5源代码 https://github.com/aspnet/Mvc MVC4源代码 http://aspnetwebstack.codeplex.com/
- 机器学习 —— 概率图模型(Homework: Factors)
Talk is cheap, I show you the code 第一章的作业主要是关于PGM的因子操作.实际上,因子是整个概率图的核心.对于有向图而言,因子对应的是CPD(条件分布):对无向图而 ...
- selvert的过滤器filter处理中文乱码
注意问题:在学习用selvert的过滤器filter处理中文乱码时,在filter配置初始化时用了utf-8处理中文乱码,而在提交的jsp页面中却用了gbk.虽然两种都可以出来中文乱码,但是却造成了处 ...
- Java语言基本语法
Java语言基本语法 一.标识符和关键字 标识符 在java语言中,用来标志类名.对象名.变量名.方法名.类型名.数组名.包名的有效字符序列,称为“标识符”: 标识符由字母.数字.下划线.美元符号组成 ...
- 预定义的类型“Microsoft.CSharp.RuntimeBinder.Binder”未定义或未导入
http://www.mzwu.com/article.asp?id=3611 因为新加了Microsoft.CSharp的引用, 只需要重新生成一下项目,就可以消除这个错误提示
- Android开发之权限列表
权限定义 功能 android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问"properties"表在checkin数据库中,改值可以修 ...
- ASP.NET中如何删除最近打开的项目和文件的记录
ASP.NTET中总是保留最近打开的项目和文件的记录,甚至是已删除的它也不删.下面介绍几种删除的方法: 第一种:建立一个bat文件,以后双击即可清除,内置代码如下: @echo off@REG Del ...
- [58 Argo]58同城开源web框架Argo搭建实践
无意间听说58开源的消息(Long long ago),我辈欣喜异常. 一方面感谢开源同仁的辛苦劳动,另一方面也为我辈在互联网技术实践圈外的人提供了一条实践的渠道. 我迫不及待的从github上dow ...