Hi, try like this to load data from database and bind to Listview in asp.net
protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection con = new OleDbConnection("Your Connection String");
con.Open();
string str = "select * from test Query";
OleDbCommand com = new OleDbCommand(str, con);
OleDbDataAdapter oledbda = new OleDbDataAdapter(com);
DataSet ds = new DataSet();
oledbda.Fill(ds, "test Query");
con.Close();
DataTable dt = ds.Tables["test Query"];
int i;
for (i = 0; i <= dt.Rows.Count - 1; i++)
{
listView1.Items.Add(dt.Rows[i].ItemArray[0].ToString());
listView1.Items[i].SubItems.Add(dt.Rows[i].ItemArray[1].ToString());
}
}