Web Site

 Server-Side Event

Keep ASTreeView free, keep ASTreeView update. Please make a donation to support the development.
  • English
  • 中文
Common Assembly Version:
Server-side events are available in ASTreeView. ASTreeView is able to AutoPostBack like DropDownList.
cs code
//bind data from data table
string path = System.AppDomain.CurrentDomain.BaseDirectory;
string connStr = string.Format( "Provider=Microsoft.Jet.OLEDB.4.0;Data source={0}db\\NorthWind.mdb", path );

DataSet ds = OleDbHelper.ExecuteDataset( connStr, CommandType.Text, "select * from [Products]" );

ASTreeViewDataTableColumnDescriptor descripter = new ASTreeViewDataTableColumnDescriptor( "ProductName"
    , "ProductID"
    , "ParentID" );

this.astvMyTree.DataTableColumnDescriptor = descripter;
this.astvMyTree.DataSource = ds.Tables[0];

Dear friend,

    ASTreeView license has been updated, please visit the License & Pricing page for detial. Thank you.