using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SQLite; namespace WindowsFormsApplication3 { public partial class Form1 : Form { string bhagyaraj; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { const string filename = @"E:\sqlite software"; const string sql = "select * from tbuser;"; var conn = new SQLiteConnection("Data Source=" + filename + ";Version=3;"); try { conn.Open(); DataSet ds = new DataSet(); var da = new SQLiteDataAdapter(sql, conn); da.Fill(ds); grid.DataSource = ds.Tables[0].DefaultView; } catch (Exception) { throw; } } } }
grid.DataSource = ds.Tables[0];
ds.Tables
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)