Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Newbie question: ArrayCtrl::IsModified(int ii) not work at expected.
Newbie question: ArrayCtrl::IsModified(int ii) not work at expected. [message #31555] |
Mon, 14 March 2011 06:07  |
Lance
Messages: 656 Registered: March 2007
|
Contributor |
|
|
I need to keep track of the edit status of the current row in a ArrayCtrl. I connected a callback to its WhenUpdateRow event.
void TransactionCtrl::TransactionUpdateRow()
{
int i;
if(trans.IsCursor() )
{
i=trans.GetCursor();
msgs.Insert(-1, String().Cat()<<"Cursor at "<<i<<"\n");
}else
return;
if( trans.IsModified(i))
{
changed=true;
msgs.Insert(-1, "MODIFIED - IN Update Row\n");
}
}
It never worked as I had expected. By the way, the column I tested is using
trans.AddColumn("Name").Edit(AnEditStringObject);
Any idea?
Thanks,
Lance
|
|
|
Goto Forum:
Current Time: Mon Apr 28 10:14:57 CEST 2025
Total time taken to generate the page: 0.03917 seconds
|