troubleshooting Question

How to get the creation date of a row of a listview?

Avatar of Peter Kiers
Peter KiersFlag for Netherlands asked on
.NET ProgrammingC#
5 Comments1 Solution277 ViewsLast Modified:

I have this code that i have put in the code-section.
When a user presses the button the code will be executed
and adds a row to the listview.
In the line that I have marked with an arrow instead of the
string "SubItem1A" I want the date and time of the creation
of the row in the listview.

Who can help me?

private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
            if (frmNote.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
                 ListViewItem myItem = new ListViewItem(frmNote.textBox1.Text, 0);
                myItem = listView1.Items.Add(myItem);
                myItem.SubItems.Add("SubItem1a");  <====================
               listView1.AutoResizeColumn(0, ColumnHeaderAutoResizeStyle.HeaderSize);
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros