I'm having trouble trying to figure out the logic for setting the selected checkboxes for a CheckBoxList from a SQL Query.
The table it's reading from could have multiple enters for the 1 user so multiple checkboxes would need to be selected.
foreach (GridViewRow row in GridView1.Rows)
{
count = 0;
int LineItem = (int)GridView1.DataKeys[index].Values["Users_ID"];
CheckBoxList box = (CheckBoxList)row.FindControl("CheckBox");
SqlConnection myConn = new SqlConnection(ConfigurationManager.ConnectionStrings["appservicesdbConnString1"].ConnectionString);
try
{
myConn.Open();
}
catch (Exception d)
{
Console.WriteLine(d. ...
Go to the complete details ...