I wanna proccess the records selected in a NxDBGrid by multiselection. The multiselection works fine but when i try to go along d grid looking for the selected rows, the only row whose Selected[i] returns true is the first in the selection. I mean the second, third, etc selected elements have Selected[] in false.
for(int i = 0; i < NxDBGrid->RowCount; i++)
{
if(NxDBGrid->Selected[i] == true)
//whatelse
}
Thanks
Selected property problem
Started by flores1980, Nov 23 2011 07:49 PM
1 reply to this topic
#1
Posted 23 November 2011 - 07:49 PM
#2
Posted 24 November 2011 - 05:57 AM
Hi Miguel,
I suggest that you open Demos\Next DBGrid\BDE\Demo 2 to see how you may work with Sections.
Maybe if you are trying to delete record, you need to use while instead of for loop.
In upcoming releases I will add access to the SelectionList object (who handle selections) and add TBookmark property for each item. Then it will be easy to delete records.
I suggest that you open Demos\Next DBGrid\BDE\Demo 2 to see how you may work with Sections.
Maybe if you are trying to delete record, you need to use while instead of for loop.
In upcoming releases I will add access to the SelectionList object (who handle selections) and add TBookmark property for each item. Then it will be easy to delete records.
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











