How to bind dropdown values in excel http://forums.asp.net/t/1772136.aspx/1?How+to+bind+dropdown+values+in+excel+Tue, 28 Feb 2012 11:12:53 -050017721364843397http://forums.asp.net/p/1772136/4843397.aspx/1?How+to+bind+dropdown+values+in+excel+How to bind dropdown values in excel <p>Hi,</p> <p>I am using excel dropdown, how to bind dropdown values in excel using SQL server with sing field,</p> <p>Eg:Employee Name</p> <p></p> <p>Thank u in advance</p> 2012-02-21T15:10:13-05:004843434http://forums.asp.net/p/1772136/4843434.aspx/1?Re+How+to+bind+dropdown+values+in+excel+Re: How to bind dropdown values in excel <p></p> <blockquote><span class="icon-blockquote"></span> <h4>kathir_cs</h4> how to bind dropdown values in excel using SQL server with sing field,</blockquote> <p></p> <p>Read Excel File in C# -&nbsp;<a href="http://www.gridview.net/read-excel-file-in-c/">http://www.gridview.net/read-excel-file-in-c/</a>&nbsp;</p> <p>And once you have data in datatable, then you can use it to bind it with dropdown...<a href="http://shahed-kazi.blogspot.in/2009/03/bind-datatable-to-dropdownlist.html">http://shahed-kazi.blogspot.in/2009/03/bind-datatable-to-dropdownlist.html</a></p> <p>Thanks,</p> 2012-02-21T15:33:31-05:004843475http://forums.asp.net/p/1772136/4843475.aspx/1?Re+How+to+bind+dropdown+values+in+excel+Re: How to bind dropdown values in excel <p>try try this..</p> <pre class="prettyprint">Public Function ToDataSetbyOle(pathName As String, SheetName As String) As DataSet</pre> <pre class="prettyprint"> Dim strQuery As String = "SELECT * FROM [" &amp; SheetName &amp; "]" Dim conn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source = " &amp; pathName &amp; "; Extended Properties = ""Excel;HDR=YES;FMT=""") conn.Open() Dim adapter As New System.Data.OleDb.OleDbDataAdapter(strQuery, conn) Dim ds As New System.Data.DataSet("Excel File") adapter.Fill(ds) conn.Close() Return ds End Function DropDownlist1.DataSource = dataSet.Tables("Table1") Dropdownlist1.DataTextField = "username" Dropdownlist1.DataValueField = "userid" DropDownlist1.DataBind()</pre> <pre class="prettyprint"><a href="http://forums.asp.net/t/1255191.aspx/1">http://forums.asp.net/t/1255191.aspx/1</a></pre> 2012-02-21T15:52:18-05:004843511http://forums.asp.net/p/1772136/4843511.aspx/1?Re+How+to+bind+dropdown+values+in+excel+Re: How to bind dropdown values in excel <p>hi</p> <p>pls see this url</p> <p><a href="http://spreadsheets.about.com/od/datamanagementinexcel/qt/20071113_drpdwn.htm">http://spreadsheets.about.com/od/datamanagementinexcel/qt/20071113_drpdwn.htm</a></p> <p>thank u</p> 2012-02-21T16:12:11-05:004854724http://forums.asp.net/p/1772136/4854724.aspx/1?Re+How+to+bind+dropdown+values+in+excel+Re: How to bind dropdown values in excel &lt;div&gt; <p>Hi kathir_cs,</p> <p>As this issue is related to Excel, I suggest you post the isssue in this support forum below. There will be more experts familiar with the issue&nbsp;in this forum.</p> <p><a href="http://answers.microsoft.com/en-us/office/forum/excel">http://answers.microsoft.com/en-us/office/forum/excel</a></p> <p>Regards</p> &lt;/div&gt; 2012-02-28T11:12:53-05:00