Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » grid row selection Collapse All
Subject Author Date
Robert Dussault Apr 21, 2005 - 8:11 PM

One more... Is it possible to catch the ’on row selected’ event in a grid control?


Thanks once again.

Technical Support Apr 22, 2005 - 2:55 AM

You can override the OnGbwSelectionChanged virtual method, which is called when the selection is changed. To retrieve the selected rows, use the following code:

if( SelectionIsEmpty() )
      return;
 
LONG nRowNo = SelectionGetFirstRowInColumn( 0L );
while( nRowNo >= 0 )
{
      ...
      nRowNo = SelectionGetNextRowInColumn( 0L, nRowNo );
}

Dave M May 5, 2005 - 9:01 AM

Hi,

One thing I’ve found frustrating is that there isn’t a list of virtual functions for any of the Prof-UIS classes. I may not be looking in the right place (2.30 Help file), so could you please point me in the right direction?

Thanks!

Dave M May 5, 2005 - 9:28 AM

I guess I should have made this a documentation request. I’d like the list of virtual functions to be in the docs, along with their descriptions. I can certainly look in CExtGridWnd.h, but that’s painful given the strange formatted and sheer volume of functions.

Technical Support May 6, 2005 - 4:45 AM

Prof-UIS help includes the list of virtual functions and their descriptions. We did this in a similar manner to MSDN. Just open the class tree in the help on Prof-UIS 2.30, open a particular class and see whether this class includes Overridables. For example, in the CExtGridWnd class ten functions are virtual and they are described in the help. Please let us know whether it is what you expected to be.