Re: Multi select rows of a flexgrid

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 07/27/04


Date: Tue, 27 Jul 2004 08:56:47 -0400


> >Does anyone have some sample code that would
> >enable me to multi-select rows in a hflexgrid. ie for
> >the user to be able to hold ctrl & click on random
> >rows of flexgrid
> >
>
> You would have to code this yourself by changing
> the colour of the selected rows.

Correct! The built-in selection mode is for contiguous rows and/or
columns of data; there is no ability to set non-contiguous selections
built into the control. For rows, this is controlled by the Row and
RowSel properties; for columns, this is controlled by the Col and ColSel
properties... there is no mechanism in the setting of these properties
that would allow the skipping of any rows and/or columns that occur
between the values assigned to these property settings.

Rick



Relevant Pages

  • Re: My custom control has issues
    ... Ultimately I have written a new control using pieces of zoompicbox as a skeleton and it's working pretty well, but there are some problems. ... This control is called PixelViewer and that's its purpose: to view an image and let you zoom in and see the pixels as pixels, not a smoothed image. ... Since GDI+ doesn't allow for XOR drawing, I've resorted to using GDI to drawing my rubber-band selection. ... That part works fine, but when I draw the final selection rectangle I get a black box, not inverted colors. ...
    (microsoft.public.dotnet.framework.drawing)
  • TextBox Readonly OnPaint wrong font! Please help!
    ... I have a read-only textBox which shows the results of a selection on ... This works until I left click the control, ... protected override void OnPaint ... private txtBx txtBxWithFontProblem; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Turing Selection Off after inserting text into a Cedit Control???
    ... control is the first non-static enabled control in the Z-order, ... Another is to PostMessage a message that will reset the selection. ... your EditBox is the first child control in the z-order. ... Specifies the starting position in the low-order word and the ending ...
    (microsoft.public.vc.mfc)
  • RE: Using Forms with multiple criteria queries
    ... Put a list box control on it. ... Private Function BuildWhereCondition(strControl As String) As String ... Dim strWhere As String ... Case Else 'Multiple Selection ...
    (microsoft.public.access.forms)
  • Dynamic Navigation
    ... have listed all the services available using CheckBoxlist control. ... I want that when a user makes selection of services in the checkboxlist ... I would also request you to please elaborate on creating a common form base ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)