|
-
Aug 16th, 2012, 01:26 AM
#1
Thread Starter
Junior Member
Need Help
Hi ,
I have a data table 'CashBook' in database , i have one tree view in winform using c# , i already made a method by which the datatable is come into dataset .
public DataTable ShowTreeView()
{
SqlConnection connection = dl.OpenConnection();
string selectLegderHead = "select * from CashBook ";
SqlDataAdapter adapter = new SqlDataAdapter(selectLegderHead, connection);
DataSet dataset = new DataSet();
adapter.Fill(dataset);
return dataset.Tables[0];
}
how i can add values to tree view or bound it to datatable .
my tree view name is treeview1 .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|