protected void btnSetProperties_OnClick(object sender, EventArgs e)
{
   if (ddlDirection.SelectedValue == "H")
   {
      this.custDL1.WhichDirection = RepeatDirection.Horizontal;
   }
   else
   {
      this.custDL1.WhichDirection = RepeatDirection.Vertical;
   }

   if (this.txtNumberColumns.Text.Length > 0)
   {
      this.custDL1.HowManyColumns = Convert.ToInt32(this.txtNumberColumns.Text);
   }
}
