On Wednesday 04 May 2016 22:31:34 Krzysztof wrote:
> 2016-05-04 8:50 GMT+02:00 Martin Schreiber <[email protected]>:
> > Please use DataCols.HasSelection().
> > GetSelectedRange() returns information about the selection by user
> > interaction with StartAnchor/EndAnchor which selects a rectangular area.
>
> Thanks, that solved one issue but confusion continued :D . I have
> another grid where I want row select but not multiselect. co_rowselect
> is checked and co_multiselect not, but I still can select multiple
> rows using CTRL or SHIFT. Even grid.getselectedrange.rowcount return
> correct multiple selected rows count. How to avoid this?

I assume you want to auto select the focused row -> activate co_focusselect 
and co_rowselect, disable co_mouseselect. It seems that co_rowselect implies 
co_multiselect because actually there are multiple cells selected, but I 
think it should be handled differently. I'll take a look.
In order to simply set the cell colour for the active row it is also possible 
to set DataCols.ColorFocused and co1_rowcolorfocused (default true).

> Second question. In case of multiselection, how to get selected rows?
> I'm not sure if getselectedrange give me what I want. I need some kind
> of array or list
>
The selection functions are located in TDataCols class (T*Grid.Datacols 
property). TDataCols.SelectedRows() returns an "integerarty".

Martin

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to