Example #1
0
        void LinqDataSource1_Complete(object sender, SimpleDynamicDataSourceCompleteEventArgs e)
        {
            var newObject = (MyTestClass)e.NewObject;

            DetailsView2.DataSource = new object[] { newObject };
            DetailsView2.DataBind();
        }
Example #2
0
        void LinqDataSource1_Complete(object sender, SimpleDynamicDataSourceCompleteEventArgs e)
        {
            var newObject = e.NewObject;

            //var someInt = DataBinder.GetPropertyValue(newObject, "SomeInt");

            DetailsView2.DataSource = new object[] { newObject };
            DetailsView2.DataBind();
        }