<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkStatus" AutoPostBack="true" runat="server"/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="DocGuid" HeaderText="Doc Name " />
</Column>
i have a gridview with single BoundField DataField="DocGuid"
i have code bhind
private void LoadAllUsers()
{
using (SqlConnection conn = new SqlConnection(myConnection))
{
string myID = dpwUser.SelectedItem.Value.ToString();
string query = "Select DocGuid from myTable p where p.DocGuid IS NOT NULL";
using (SqlCommand cmd = new SqlCommand(query, conn))
{
SqlDataAdapter da = new S ...
Go to the complete details ...