![]() I need an event that will fire every time the currently selected row in the grid changes, for whatever reason, and never for any other reason. (BTW looking outside the grid by hooking various events in the data source or dataset has already been suggested to me, and it's not acceptable because other data-aware controls on the form can set them off. There has to be some simple way to do this, and I just don't know enough about grids to figure it out off the top of my head. What do I need to do to get the same information (previous row # and new row #) if the user is moving up and down the list with the keyboard? It would be simple if there was an ActiveCell property, but I can't find one. I have a stringgrid with his option:fixedrows1,fixedco ls1,colro ws2. I can override TCustomGrid.RowMoved, but it looks like that only gets called from a mouse event. I am working with Stringgrid.I have a question. ![]() This can be set either in the designer or in code. ![]() You can then set StringGrid1. To highlight the row of the selected cell, set the MarqueeStyle property to HighlightRow. I'm trying to write a TCustomDBGrid descendant that's designed to feel like a TListBox, and I need an event that will fire every time the user changes the active row. If you enable the option goFixedColClick of the string grid you can then use the OnFixedCellClick event to determine which row to select. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |