List Control in C# Archives - Tech Insights https://reactconf.org/category/list-control-in-c/ Unveiling Tomorrow's Tech Today, Where Innovation Meets Insight Fri, 25 Apr 2014 17:18:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 https://i0.wp.com/reactconf.org/wp-content/uploads/2023/11/cropped-reactconf.png?fit=32%2C32&ssl=1 List Control in C# Archives - Tech Insights https://reactconf.org/category/list-control-in-c/ 32 32 230003556 ListView Control in C# https://reactconf.org/listview-control-in-csharp/ https://reactconf.org/listview-control-in-csharp/#respond Fri, 25 Apr 2014 17:18:00 +0000 http://www.sqlneed.com/2014/04/25/listview-control-in-c/ Create New Project and give the Name of the project is ListViewTutorial. Add the textbox1.text,textbox2.text,command button and ListView control and copy this code and paste.  usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; …

The post ListView Control in C# appeared first on Tech Insights.

]]>

Create New Project and give the Name of the project is ListViewTutorial. Add the textbox1.text,textbox2.text,command button and ListView control and copy this code and paste. 


usingSystem;

usingSystem.Collections.Generic;

usingSystem.ComponentModel;

usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceListViewTutorial
{
    public partial class Form1 : Form
    {
        publicForm1()
        {
            InitializeComponent();
        }
        privatevoid Form1_Load(objectsender, EventArgs e)
        {
            listView1.GridLines = true;
            listView1.View = View.Details;
            //Add Column Header
            listView1.Columns.Add(“Employee ID”, 150);
            listView1.Columns.Add(“Employee Name”, 150);
        }
        privatevoid button1_Click(objectsender, EventArgs e)
        {
            // Add item in the Listview
            ListViewItemlv = new ListViewItem(textBox1.Text);
            lv.SubItems.Add(textBox2.Text);
            listView1.Items.Add(lv);
        }
    }
}

  


The post ListView Control in C# appeared first on Tech Insights.

]]>
https://reactconf.org/listview-control-in-csharp/feed/ 0 2242