Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - how to insert or delete row in report controls
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to insert or delete row in report controls

 Post Reply Post Reply
Author
Message
waterguoliang View Drop Down
Newbie
Newbie


Joined: 18 May 2014
Location: 中国
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote waterguoliang Quote  Post ReplyReply Direct Link To This Post Topic: how to insert or delete row in report controls
    Posted: 18 May 2014 at 2:58am

i have to insert, delete or modify rows in report controls dynamiclly, i coded as followed:

 m_wndReportCtrl.BeginUpdate();
 CXTPReportRow* row = new CXTPReportRow();
 row->InitRow(&m_wndReportCtrl, 0, record);
 m_wndReportCtrl.InsertRow(cur_idx, row);
 insert_lrc_data->m_item_data = row;
 m_wndReportCtrl.EndUpdate();
 
but it's not work, row inserted actually, but can't be selected anymore.
 
what's wrong? thanks!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.