As per You Requirement I have Created sample , i think this will help you out.
HTML
<asp:ListView ID="lvHobbies" runat="server" ItemPlaceholderID="itemPlaceHolder1">
<LayoutTemplate>
<table cellpadding="0" cellspacing="0">
<tr>
<th>
</th>
<th>
Hobby
</th>
<th>
</th>
</tr>
<asp:PlaceHolder runat="server" ID="itemPlaceHolder1"></asp:PlaceHolder>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td>
<asp:CheckBox ID="chkSelected" runat="server" Checked='<%# Eval("IsSelected") %>' />
</td>
<td>
<%# Eval("Hobby")%>
</td>
<td>
<asp:Button ID="btnEdit" Text="Edit" CommandName="Edit" runat="server" Enabled='<%# Convert.ToBoolean(Eval("IsSelected")) == true ? false : true %>' />
</td>
</tr>
</ItemTemplate>
</asp:ListView>
Namespaces
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
Code
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this.BindListView();
}
}
private void BindListView()
{
string constr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
using (SqlConnection con = new SqlConnection(constr))
{
using (SqlCommand cmd = new SqlCommand("SELECT [Hobby], [IsSelected] FROM Hobbies"))
{
using (SqlDataAdapter sda = new SqlDataAdapter())
{
cmd.Connection = con;
sda.SelectCommand = cmd;
using (DataTable dt = new DataTable())
{
sda.Fill(dt);
lvHobbies.DataSource = dt;
lvHobbies.DataBind();
}
}
}
}
}
Screenshot