Add Blank Line to dropdownlist
-
I am populating my Dropdownlist using dataset DataTable t_table = new DataTable(); SqlDataAdapter adapt; SqlCommand cmd = new SqlCommand("SELECT distinct ID from TBL1",conn); adapt = new SqlDataAdapter(cmd); adapt.Fill(t_table); dsProj.Tables.Add(t_table); The staement does populate as expected but I want to insert a Blank Line First. How can I do this?
-
I am populating my Dropdownlist using dataset DataTable t_table = new DataTable(); SqlDataAdapter adapt; SqlCommand cmd = new SqlCommand("SELECT distinct ID from TBL1",conn); adapt = new SqlDataAdapter(cmd); adapt.Fill(t_table); dsProj.Tables.Add(t_table); The staement does populate as expected but I want to insert a Blank Line First. How can I do this?
This was asked over here[^], roughly.
Mark Churchill Director Dunn & Churchill Free Download:
Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio. -
I am populating my Dropdownlist using dataset DataTable t_table = new DataTable(); SqlDataAdapter adapt; SqlCommand cmd = new SqlCommand("SELECT distinct ID from TBL1",conn); adapt = new SqlDataAdapter(cmd); adapt.Fill(t_table); dsProj.Tables.Add(t_table); The staement does populate as expected but I want to insert a Blank Line First. How can I do this?