How to create a horizontal CheckBoxList in checkboxlist horizontal
CheckBoxList is an web server control. checkboxlist control create a multi selection check box group. a checkboxlist can contain many items. by default, checkboxlist items are displayed vertically in web page.

checkboxlist RepeatDirection property allow us to set or get a value that indicate whether the control display it items vertically or horizontally. to display all items of a checkboxlist to horizontally we need to apply few techniques.

first we need to set the RepeatDirection property value to Horizontal. next we need to leave the RepeatLayout and RepeatColumns property unchanged. RepeatLayout property default value is Table and the RepeatColumns property default value is 0 (zero). so the procedure is, we need to set checkboxlist RepeatDirection property value to Horizontal, RepeatLayout to Table and RepeatColumns to 0.

the following c# example code demonstrate us how can we create a horizontal checkboxlist in an application.

<%@ Page Language="C#" AutoEventWireup="true"%>    
<!DOCTYPE html>
<script runat="server">

<html xmlns="">        
<head id="Head1" runat="server">        
    <title> checkboxlist horizontal</title>
    <form id="form1" runat="server">        
        <h2 style="color:MidnightBlue; font-style:italic;">        
   example - checkboxlist horizontal
        <hr width="550" align="left" color="Gainsboro" />        
        <br /><br />
            <asp:ListItem Text="Pied Crow" Value="1"></asp:ListItem>
            <asp:ListItem Text="House Crow" Value="2"></asp:ListItem>
            <asp:ListItem Text="Green Magpie" Value="3"></asp:ListItem>
            <asp:ListItem Text="Piapiac" Value="4"></asp:ListItem>
            <asp:ListItem Text="Flame Robin" Value="5"></asp:ListItem>
More examples