If you type a word on the "txtProdBarcode" section, the lists will come at the bottom like the picture. The list sections name is "lvBase"
Then when you type a word on the "searchText" section, the checkboxes on the "lvBase" section shouldn't be clicked.
I've tried my best but can't get the answer.
private void txtProdBarcode_TextChanged(object sender, EventArgs e)
{
string searchText = txtProdBarcode.Text.ToUpper().Trim();
if (searchText.Length > 0)
{
lvBase.CheckBoxes = false;
}
else
{
lvBase.CheckBoxes = true;
}
This code deletes the checkboxes on the "lvBase" section. But it's not what I want.
Can you guys help me to solve this problem?
Aucun commentaire:
Enregistrer un commentaire