i'm using vs 2005 and
vb.net to development a window application. i have a checkboxlist that contains few items. i need to disable some of the items, meaning the checked could not be modified after being saved into the database.
the purpose of doing this because i want to show user the item they redeemed.
please tell me how to do that.
thanks for any help. coading is-
public void monthDetail()
{
if (txtRagis.Text != "")
{
sql = "SELECT * from FeeMonthDetail WHERE RagisterNo='" + txtRagis.Text + "'";
DataSet ds = new DataSet();
cmd.CommandText = sql;
cmd.Connection = con;
adpt.SelectCommand = cmd;
adpt.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
DataTable dt = (DataTable)ds.Tables[0];
for (int a = 1; a < dt.Columns.Count; a++)
{
if (dt.Rows[0][a].ToString() == "True")
{
checkedListBox1.SetItemChecked(a-1, true);
}
//string b=dt.Rows[0][a].ToString();
// SelectedItems[a].ToString() =dt.Rows[0][a].ToString();
}
}}}