Listview Manual Population with Panel


Author
Message
John McLaughlin
John McLaughlin
StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)
Group: StrataFrame Users
Posts: 9, Visits: 13
I have a panel manager with 2 panels as well as business objects with parent/child relationships set. In addition, I have a treeview that provides a list. When I single click on the treeview, the text boxes on the first panel populate. When I doubleclick, I capture the primary key value, and run the code to populate the child business object. from what I can tell it is populating, but I can't get the listview to display the values. Any thoughts?

private void trv_Reports_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)

{

reportID = e.Node.Text.Substring(e.Node.Text.LastIndexOf("-") + 2, (e.Node.Text.Trim().Length - e.Node.Text.LastIndexOf("-") - 2));

isource_reportBO.NavigateToPrimaryKey(reportID);

report_ID = System.Convert.ToInt32(reportID);

this.report_SpecBO.FillByParentPrimaryKey(report_ID);

this.lvReportSpec.Requery();

this.panelManagerReportMaint.Hide();

this.panelManagerReportSpec.Show();

...


Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Did you handle the ListPopulating event of the listview and provide whatever parameters are needed for the method it is to execute?
John McLaughlin
John McLaughlin
StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)
Group: StrataFrame Users
Posts: 9, Visits: 13
Apparently no, but that did it. Thanks.

e.Parameters[0].Value = this.ReportID;


Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Glad you got it working! BigGrin
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search