Formatting code in blog entries
I just posted a blog, and spent too much time trying to get my code to format correctly. At that, it did not turn out well.
So, I read [this blog] and found what appears to be an easier way to format code in a blog entry.
It it works, the code below should be very easy to read:
private void ButtonFillDataGrids_Click(object sender, System.EventArgs e)
{
#region Populate the first datagrid
this.DataGrid1.DataSource =
CacheLoaders.GetCacheItem("NorthwindCategories",
new CacheLoader(CacheLoaders.GetNorthwindDataSet));
this.DataGrid1.DataBind();
#endregion
#region Populate the second datagrid
this.DataGrid2.DataSource =
CacheLoaders.GetCacheItem("Employees.Xml",
new CacheLoader(CacheLoaders.GetEmployeesXml));
this.DataGrid2.DataBind();
#endregion
}