最近在学习ProductsDemo.Win,有一些体会记录下来,大家分享:
 在Contacts模块:
在Private Sub UpdateCurrentContact()过程添加一句:InitIndex(DataHelper.Contacts)'根据Contacts数据库重建索引
在Public Sub SetupGrid(ByVal list As List(Of AlphaIndex), ByVal grid As GridControl)过程添加代码后如下:
Dim view As GridView = TryCast(grid.MainView, GridView)
            view.Columns.Clear()'清理索引列
            view.Columns.AddVisible("Index")
            grid.DataSource = list
   AddHandler view.FocusedRowChanged, AddressOf view_FocusedRowChanged
实现更改Contacts的Last Name后重建索引。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-10-10
  • 2022-01-25
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2021-11-05
  • 2021-11-05
  • 2022-01-11
  • 2021-08-10
  • 2021-10-26
  • 2021-12-14
相关资源
相似解决方案