|
Hi,
Is it possible not to show the first record after the databindings.
I have the following code in the form load event :
ds=GetDataSet(); combo.DataSource=ds.Table[0]; combo.DisplayMember="CustID";
TextBox1.DataBindings.Add("Text", ds, "ds.Table[0].CustName"); TextBox2.DataBindings.Add("Text", ds, "ds.Table[0].Address");
I do not want to display any details in the combo and text boxes until user select from the combo.
I tried to set the combo.SelectedIndex=-1 , but it is not working
Any one can help ? Thanks ..
Notes : I am using C#2003 |