private void ReadRecords() { OleDbConnection conn = null; OleDbDataReader reader = null; try { conn.Open(); OleDbCommand cmd = new OleDbCommand("Select * FROM nifty_daily", conn); reader = cmd.ExecuteReader(); datagrid.DataSource = reader; datagrid.DataBind(); } finally { if (reader != null) reader.Close(); if (conn != null) conn.Close(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)