在使用这个控件的时候,要确定选中的行,然后点击,就能修改这行的数据.为了实现这个功能,首先确定选中行,

这个控件专门提供了一个属性.rowsel:代表选中的行的行号,行号从0开始.

例如,在查询选中的数据时.使用sql语句:

txtStuSQL = "select * from student_Info where student_ID='" & myFlexGrid.TextMatrix(myFlexGrid.RowSel, 0) & "'"

其中  myFlexGrid.TextMatrix(myFlexGrid.RowSel, 0)

代表选中行的第一列数据.

程序的意思是让选中行的第一列数据等于student_ID

   

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案