Discussion:
DataGrid VB6.0
(too old to reply)
BD
2003-10-25 13:11:02 UTC
Permalink
How to jump to a certain column even the user click on another column?

I use the MarqueeStyle = dbgHighlightRow and when the user hit the
Enter key I set:
MarqueeStyle = dbgFloatingEditor
Col = 0 (It could be another col)
EditActive = True (To select the content of the column)
And all work fine.

When the user click with the mouse on any column, I want the cursor
jump to the column I intend (Col 0 in this case) of the active row, no
mater what the column the user click. The code above don't work with
the click because if the user click in the Col 3 the cursor remain in
that Col.

I prefer the user enter in edit mode only with DblClick but I can't
stop the edit mode with the build in click event of the data grid.

Thanks in advance
Regards
BD
BD
2003-10-25 13:39:38 UTC
Permalink
I don't have the SelEndRow and SelStartRow prroperties on the Data
Grid control. Anyone know why?

Thanks in advance
Regards
BD
Post by BD
How to jump to a certain column even the user click on another column?
I use the MarqueeStyle = dbgHighlightRow and when the user hit the
MarqueeStyle = dbgFloatingEditor
Col = 0 (It could be another col)
EditActive = True (To select the content of the column)
And all work fine.
When the user click with the mouse on any column, I want the cursor
jump to the column I intend (Col 0 in this case) of the active row, no
mater what the column the user click. The code above don't work with
the click because if the user click in the Col 3 the cursor remain in
that Col.
I prefer the user enter in edit mode only with DblClick but I can't
stop the edit mode with the build in click event of the data grid.
Thanks in advance
Regards
BD
Continue reading on narkive:
Loading...