DrawGrid - deselect row at runtime lazarus / 31-LCL ---------------------------------------------------------------------- Dibo · 2014-12-05 22:47 Hi, Is it possible to deselect row at runtime? DrawGrid1.Row := -1 or DrawGrid1.Row := 0 doesn't work. It always select something. I looked on grid options but doesn't find anything. For example in TListView.ItemIndex := -1 deselect row Regards ---------------------------------------------------------------------- lainz · 2014-12-06 00:48 Hi Dibo, Try: Code: [Select]DrawGrid1.Selection := Rect(-1,-1,-1,-1); ---------------------------------------------------------------------- Dibo · 2014-12-06 02:07 Nope, first row always selected ---------------------------------------------------------------------- lainz · 2014-12-06 05:32 ok so you have gorowselect option turned on, in other cases works. Seems a bug. In the form editor is also selected by default the first row.