PBDR.COM

About   -   Contact   -   Purchase   -   Search   -   What's New

 
 
Check for Multiple Selected Rows
This tip was submitted by Charles Ginzel.

Often times you need to have functionality enabled dependent on the number of rows selected in a datawindow (e.g. multi-selecting and deleting rows is usually valid, but multi-selecting and editing may not be). Below is a quick and easy way to determine if more than one row is currently selected within a datawindow.

// only allow copy to be enabled when a single row is selected
m_copy.Enabled = ldw.GetSelectedRow( ldw.GetSelectedRow( 0 ) ) = 0
 

Top of Page

Legal Notice

Ken Howe 2011