or
public class Product { public int ProductId { get; set; } public string Name { get; set; } public int CategoryId { get; set; } public virtual Category Category { get; set; } } public class Category { private readonly ObservableListSource<Product> _products = new ObservableListSource<Product>(); public int CategoryId { get; set; } public string Name { get; set; } public virtual ObservableListSource<Product> Products { get { return _products; } } } public class ProductContext : DbContext { public DbSet<Category> Categories { get; set; } public DbSet<Product> Products { get; set; } public ProductContext() : base("my conn string") { this.Configuration.AutoDetectChangesEnabled = true; }this.radGridView2.RowSourceNeeded += new Telerik.WinControls.UI.GridViewRowSourceNeededEventHandler(this.radGridView2_RowSourceNeeded); GridViewTemplate childTemplate = new GridViewTemplate(); childTemplate.HierarchyDataProvider = new GridViewEventDataProvider(childTemplate); childTemplate.DataSource = this.productsBindingSource; childTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; radGridView2.MasterTemplate.Templates.Add(childTemplate);
DescriptionTextListDataItem desc = new DescriptionTextListDataItem();<br>desc.Text = DotaText;
desc.Image = LoadImage(dotid.ToString());
desc.DescriptionText = family1 + " " + name1;
desc.ForeColor = Color.Black;
usersList.Items.Add(desc);

private void GridView_CreateRow (Object sender, Telerik.WinControls.UI.GridViewCreateRowEventArgs e) { e.RowInfo.MinHeight = TableElement.RowHeight; }private void GridView_CreateRow (Object sender,Telerik.WinControls.UI.GridViewCreateRowEventArgs e) { e.RowInfo.MinHeight = TableElement.RowHeight; if (e.RowInfo.Group = null) e.RowInfo.Group.GroupRow.MinHeight =TableElement.RowHeight; }


datePicker.NullText = "No date...";
datePicker.NullDate = DateTime.Parse("1900-01-01");datePicker.NullableValue = DateTime.Today;datePicker.NullableValue = null;datePicker.SetToNullValue();



