|
-
Jun 5th, 2025, 02:56 PM
#11
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
 Originally Posted by Krool
AllowSelection/AllowMultiSelection will soon not enforce anymore possible selection change. (like vsFlexGrid)
As also the MS ListView does not enfore it when turning off MultiSelect property. (to be changed in VBCCR as well, VBCCR ListView <> MS ListView mismatch currently)
AllowMultiSelection will still clear or initialize the selected flags. (though vsFlexGrid only clears)
Update released.
 Originally Posted by bincong
It feels that the implementation is a bit complicated.
Ultimately, I think using .RowHidden(1) = True remains the simpler approach.
Truly appreciate your help, and apologies for the trouble.
I don't fully understand what you want to achieve. Having client callbacks (MsgBox) in those events feels certainly not like a good idea.
Maybe track the selected rows when loading grid2 and when grid1 changes selection check if the selected rows of grid2 are different then at original state and then raise a MsgBox "Will loose modification? Want not to save?" vbYes would then save and then grid2 is loaded with new data of selection of grid1, if vbNo then no save and the same, grid2 is loaded with new data of selection of grid1. The MsgBox should certainly happen before you load the new data that the user still sees what data may get lost.
Last edited by Krool; Jun 5th, 2025 at 03:07 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|