CRDBGrid problem
CRDBGrid problem
We are using CRDBgrid in many places in our Delphi applications to show data from database. I found strange grid behaviour in case when grid working in multiselect mode. For some internal validations we are using property Grid.SelectedRows.Count. I found that when grid line was selected by mouse click Grid.SelectedRows.Count=1. But when grid line was selected by arrow up/down button Grid.SelectedRows.Count=0. Also selection symbol in 0 column different. Because we are using such validation in many places this behaviour makes inconsistence in validation. Can you help me forcing the grid working same regardless of the row selection kind?
When you are navigating through the grid using Up and Down arrows, the grid highlights the current row in the dataset. But it does not consider that this row is selected. The TCRDBGrid component supports selecting rows by mouse only.
The TCRDBGrid component inherit this behaviour from its base class TCustomDBGrid. There is no easy way for you to change it.
The TCRDBGrid component inherit this behaviour from its base class TCustomDBGrid. There is no easy way for you to change it.