am using C#, VS-2005
am new for listview Control in VS-2005. I know how to Insert Records into Listview by typing on Outer Textbox.
But don't know how to directly insert Records on Empty ListView control as it not Focus It's Self.
If any other way or is it possible to insert data directly to ListView Control then Please provide me some code or guide me please.
If you refer to WinForms, see the
System.Windows.Forms.ListViewItem Class, it Represents an item in a ListView control.
ListViewItemclass defines the appearance, behavior, and data associated with an item that is displayed in the
ListViewItemobjects can be displayed in the
ListViewcontrol in one of four different views.
From the example on the same page (see the full example using the ref above):
ListView listView1 = new ListView();
ListViewItem item1 = new ListViewItem("item1",0);
It sounds like you want a grid control rather than a Listview control. In my experience, Listview controls are primarily read-only and grids are editable. Have you considered using a grid?