Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
AnswerRe: Const vars Pin
Guffa11-Sep-05 9:41
Guffa11-Sep-05 9:41 
GeneralRe: Const vars Pin
Niklas Ulvinge11-Sep-05 21:43
Niklas Ulvinge11-Sep-05 21:43 
AnswerRe: Const vars Pin
S. Senthil Kumar12-Sep-05 0:24
S. Senthil Kumar12-Sep-05 0:24 
GeneralRe: Const vars Pin
Niklas Ulvinge12-Sep-05 3:42
Niklas Ulvinge12-Sep-05 3:42 
Question(CTRL + SHIFT) keyboard action Pin
Mike Jeferson11-Sep-05 8:33
Mike Jeferson11-Sep-05 8:33 
AnswerRe: (CTRL + SHIFT) keyboard action Pin
Mohamad Al Husseiny11-Sep-05 8:43
Mohamad Al Husseiny11-Sep-05 8:43 
GeneralRe: (CTRL + SHIFT) keyboard action Pin
Mike Jeferson11-Sep-05 11:36
Mike Jeferson11-Sep-05 11:36 
AnswerRe: (CTRL + SHIFT) keyboard action Pin
Mohamad Al Husseiny11-Sep-05 12:06
Mohamad Al Husseiny11-Sep-05 12:06 
GeneralRe: (CTRL + SHIFT) keyboard action Pin
Anonymous12-Sep-05 0:22
Anonymous12-Sep-05 0:22 
AnswerRe: (CTRL + SHIFT) keyboard action Pin
Mohamad Al Husseiny12-Sep-05 9:32
Mohamad Al Husseiny12-Sep-05 9:32 
QuestionOpen A File AT Program Start Pin
Morten Jørgensen11-Sep-05 7:23
Morten Jørgensen11-Sep-05 7:23 
AnswerRe: Open A File AT Program Start Pin
Mohamad Al Husseiny11-Sep-05 9:22
Mohamad Al Husseiny11-Sep-05 9:22 
QuestionListBox visualization problem Pin
firefoxrabbit11-Sep-05 7:00
firefoxrabbit11-Sep-05 7:00 
QuestionMessageBox control options? Pin
Anonymous11-Sep-05 6:41
Anonymous11-Sep-05 6:41 
AnswerRe: MessageBox control options? Pin
Dave Kreskowiak11-Sep-05 7:24
mveDave Kreskowiak11-Sep-05 7:24 
GeneralRe: MessageBox control options? Pin
...---...11-Sep-05 11:23
...---...11-Sep-05 11:23 
GeneralRe: MessageBox control options? Pin
Dave Kreskowiak12-Sep-05 1:21
mveDave Kreskowiak12-Sep-05 1:21 
Questionread Excel-Table in Datagrid with ASP.NET Pin
surfman1911-Sep-05 4:11
surfman1911-Sep-05 4:11 
hi,
i have 2 problems, when i read the Excel-Tabel in the Datagrid!

<br />
// Create connection string variable. Modify the "Data Source"<br />
// parameter as appropriate for your environment.<br />
string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=@C:\\Test.xls;" + "Extended Properties=Excel 8.0;" + "HDR=Yes;IMEX=1";<br />
<br />
// Create connection object by using the preceding connection string.<br />
OleDbConnection objConn = new OleDbConnection(sConnectionString);<br />
<br />
// Open connection with the database.<br />
objConn.Open();<br />
<br />
// The code to follow uses a SQL SELECT command to display the data from the worksheet.<br />
// Create new OleDbCommand to return data from worksheet.<br />
OleDbCommand objCmdSelect =new OleDbCommand("SELECT * FROM [Tabelle1$]", objConn);   <--- An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll<br />
<br />
// Create new OleDbDataAdapter that is used to build a DataSet<br />
// based on the preceding SQL SELECT statement.<br />
OleDbDataAdapter objAdapter1 = new OleDbDataAdapter();<br />
<br />
// Pass the Select command to the adapter.<br />
objAdapter1.SelectCommand = objCmdSelect;<br />
<br />
// Create new DataSet to hold information from the worksheet.<br />
DataSet objDataset1 = new DataSet();<br />
<br />
// Fill the DataSet with the information from the worksheet.<br />
objAdapter1.Fill(objDataset1, "XLData");<br />
<br />
// Bind data to DataGrid control.<br />
dataGrid1.DataSource = objDataset1.Tables[0].DefaultView;<br />
dataGrid1.DataBind();           <-------- System.Windows.Forms.DataGrid' does not contain a definition for 'DataBind'<br />
<br />
// Clean up objects.<br />
objConn.Close();<br />


cu
AnswerRe: read Excel-Table in Datagrid with ASP.NET Pin
Guffa11-Sep-05 4:48
Guffa11-Sep-05 4:48 
GeneralRe: read Excel-Table in Datagrid with ASP.NET Pin
surfman1911-Sep-05 11:32
surfman1911-Sep-05 11:32 
GeneralRe: read Excel-Table in Datagrid with ASP.NET Pin
surfman1911-Sep-05 12:13
surfman1911-Sep-05 12:13 
GeneralRe: read Excel-Table in Datagrid with ASP.NET Pin
Guffa11-Sep-05 20:47
Guffa11-Sep-05 20:47 
Questionmutlitiple user application Pin
Mohammed Halabi11-Sep-05 2:52
Mohammed Halabi11-Sep-05 2:52 
GeneralRe: mutlitiple user application Pin
Guffa11-Sep-05 3:07
Guffa11-Sep-05 3:07 
GeneralRe: mutlitiple user application Pin
Mohammed Halabi11-Sep-05 17:10
Mohammed Halabi11-Sep-05 17:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.