namespace treeview2
{
public partial class Form1 : Form
{
private static string connString = "Data Source=.;Initial Catalog=***;Integrated Security=True";
public static SqlConnection connection = new SqlConnection(connString);
private DataTable datatable;
SqlDataAdapter dataAdapter;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
BindTree();
}
private DataTable getTreeViewData()
{
string sql = "select no,title from b_table";
try
{
datatable = new DataTable();
dataAdapter = new SqlDataAdapter(sql, connec
{
public partial class Form1 : Form
{
private static string connString = "Data Source=.;Initial Catalog=***;Integrated Security=True";
public static SqlConnection connection = new SqlConnection(connString);
private DataTable datatable;
SqlDataAdapter dataAdapter;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
BindTree();
}
private DataTable getTreeViewData()
{
string sql = "select no,title from b_table";
try
{
datatable = new DataTable();
dataAdapter = new SqlDataAdapter(sql, connec