Home > Software engineering >  VB datagrid control real-time error 6148
VB datagrid control real-time error 6148

Time:10-12

For I=1 To the Datagrid. ApproxCount
Datagrid_dic. Refresh
Datagrid_dic. Row=I - 1

With the above code to obtain the number of rows in the datagrid control, when I=24 (less than 24 no error), program error

Real-time error '6148'
Invalid row number

Consult everybody, this is what causes, thank you!

CodePudding user response:

What do you want? DataGrig Row attribute is only used for window visible lines,

If you want to freedom through the code editor cell, might as well use MSFlexGrid or MSHFlexGrid,

CodePudding user response:

I have been use MSHFlexGrid, work well,
  • Related