首页 | 本学科首页   官方微博 | 高级检索  
     检索      

利用事件委托机制实现双数据窗口的同步显示
引用本文:许立伟.利用事件委托机制实现双数据窗口的同步显示[J].航空计算技术,2005,35(2):69-71.
作者姓名:许立伟
作者单位:中石化胜利石油有限公司东辛采油厂地质研究所,山东,东营,257094
摘    要:DataGrid控件用表格型式显示数据,当两个DataGrid绑定同一数据源时,它们在数据处理与显示方面将保持同步。可是当涉及到控件的滚动条事件时,系统并没有作相应处理,拖动其中一个窗口垂直滚动条时,该数据窗口的数据随之滚动,而另一个窗口的数据和流动条都没有跟着同步滚动,为此,必须编程来解决滚动条,滚动到特定位置的问题。C#的事件委托机制为我们提供了解决这一问题的方法和途径。本文简要介绍了C#的事件委托机制及其实现的方法和步骤,并应用该方法实现了一个具有固定列显示功能的双数据窗口同步显示的实例。

关 键 词:事件  委托  DataGrid  保护类型
文章编号:1671-654X(2005)02-0069-03
修稿时间:2005年1月8日

Using Event-delegate Mechanism to Realize Display Synchronization of Double DataGrids
XU Li-wei.Using Event-delegate Mechanism to Realize Display Synchronization of Double DataGrids[J].Aeronautical Computer Technique,2005,35(2):69-71.
Authors:XU Li-wei
Abstract:The event-delegate mechanism plays a important part in the Windows programmings.This article briefly introduces the event-delegate mechanism of C sharp and it's method and steps of realization,then using this mothod to realize a program instance of display synchronization of double DataGrids with the function of fixed data columns display.
Keywords:event  delegate  DataGrid  protected
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号