Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

how to keep combo box as null before selecting the record , now always showing the first record in the combox item, without selection the record.

$
0
0

Even if I am not selecting  the item , In my combo box , always showing the  first record in the  in the combo box text. How can i keep it is null before selecting the record from ddwn. following is my code

 cmbCustomer.Items.Clear();
            kmInvoice objKmInvoice = new kmInvoice();
            DataTable t = new DataTable();
            t = objKmInvoice.CustomerList();
            cmbCustomer.DataSource = t;
            cmbCustomer.DisplayMember = "CustName";
            cmbCustomer.ValueMember = "Code";

Kind Regards

pol


polachan


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>