Click here to Skip to main content
16,012,468 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: 64-bit Interop Pin
Leslie Sanford17-Aug-07 7:42
Leslie Sanford17-Aug-07 7:42 
GeneralRe: 64-bit Interop Pin
Luc Pattyn17-Aug-07 7:47
sitebuilderLuc Pattyn17-Aug-07 7:47 
GeneralRe: 64-bit Interop Pin
Leslie Sanford17-Aug-07 8:04
Leslie Sanford17-Aug-07 8:04 
GeneralRe: 64-bit Interop Pin
Luc Pattyn17-Aug-07 8:14
sitebuilderLuc Pattyn17-Aug-07 8:14 
GeneralRe: 64-bit Interop Pin
Leslie Sanford17-Aug-07 11:30
Leslie Sanford17-Aug-07 11:30 
GeneralRe: 64-bit Interop Pin
Luc Pattyn17-Aug-07 12:39
sitebuilderLuc Pattyn17-Aug-07 12:39 
QuestionIs any Record Set Concept is there in OLEDB Pin
Praveen 12317-Aug-07 1:29
Praveen 12317-Aug-07 1:29 
AnswerRe: Is any Record Set Concept is there in OLEDB Pin
Scott Dorman17-Aug-07 10:26
professionalScott Dorman17-Aug-07 10:26 
Instead of using the <code> tag, you should use the <pre> tag.
VB
Dim con As OleDbConnection
Dim cmd As OleDbCommand = New OleDbCommand
Dim dataSet As dataSet = Nothing
 
Sub BindGrid()
   Dim oleDbDataAdapter As OleDbDataAdapter = Nothing
   Dim ConnectionString = _
     System.Configuration.ConfigurationSettings.AppSettings(ConConstant.MS_ACCESS_CONNECTION_STRING)
 
   ' Ge the sql query
   Dim SelectQueryText As String = String.Empty
   SelectQueryText = "Select Leave_Code as LeaveCode,Leave_Name as LeaveName,NoOfDays as Days from Leave_Mstr"
   oleDbDataAdapter = New OleDbDataAdapter(SelectQueryText, New OleDbConnection(ConnectionString))
 
   ' Create the data set
   dataSet = New DataSet
 
   ' Fill the data set with the data
   oleDbDataAdapter.Fill(dataSet)
   If (Not oleDbDataAdapter Is Nothing) Then
      oleDbDataAdapter = Nothing
   End If
   
   With dgLeavCrtnLeavDtls
      .DataSource = dataSet
      .DataMember = dataSet.Tables(0).TableName
      .DataBind()
   End With
End Sub
 
Sub tablebind()
   Dim oleDbDataAdapter As OleDbDataAdapter = Nothing
   Dim ConnectionString = _
      System.Configuration.ConfigurationSettings.AppSettings(ConConstant.MS_ACCESS_CONNECTION_STRING)
 
   ' Ge the sql query
   Dim SelectQueryText As String = String.Empty
   SelectQueryText = "Select Leave_Code as LeaveCode,Leave_Name as LeaveName,NoOfDays as Days from Leave_Mstr"
   oleDbDataAdapter = New OleDbDataAdapter(SelectQueryText, New OleDbConnection(ConnectionString))
 
   ' Create the data set
   dataSet = New DataSet
 
   ' Fill the data set with the data
   oleDbDataAdapter.Fill(dataSet)
 
   Dim dh As TableHeaderCell
   Dim dc As DataColumn
   Dim dr As DataRow
 
   For Each dr In dataSet.Tables(0).Rows
      Dim trow As New TableRow
 
      For Each dc In dataSet.Tables(0).Columns
         Dim tcell As New TableCell
         tcell.Controls.Add(New LiteralControl(dr(dc.ColumnName).ToString))
         trow.Cells.Add(tcell)
      Next
   Next
End Sub
Why do you have both of these functions? They do almost the same thing, except one tries to bind the data grid to the table and the other one looks like you are trying to copy the row to a new row. It's not entirely clear what you are trying to do or what the problem is that you are encountering.



-----------------------------
In just two days, tomorrow will be yesterday.

http://geekswithblogs.net/sdorman

Questionflash button Pin
michael_jhons16-Aug-07 21:42
michael_jhons16-Aug-07 21:42 
AnswerRe: flash button Pin
pmarfleet16-Aug-07 23:33
pmarfleet16-Aug-07 23:33 
QuestionSource C# for Chinese Chess Pin
Quoc Trang16-Aug-07 17:54
Quoc Trang16-Aug-07 17:54 
QuestionHow To install msi file along with my app setup Pin
Mayur16-Aug-07 4:52
professionalMayur16-Aug-07 4:52 
QuestionHow to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath15-Aug-07 21:42
bijeshputhalath15-Aug-07 21:42 
AnswerRe: How to raise events while clicking a datalist item or a particular Row?? Pin
- Pascal -17-Aug-07 9:11
- Pascal -17-Aug-07 9:11 
QuestionWhy Value types.. Pin
Sendilkumar.M15-Aug-07 21:15
Sendilkumar.M15-Aug-07 21:15 
AnswerRe: Why Value types.. Pin
Urs Enzler15-Aug-07 23:02
Urs Enzler15-Aug-07 23:02 
QuestionOpening a DB Pin
zchwllms14-Aug-07 12:20
zchwllms14-Aug-07 12:20 
AnswerRe: Opening a DB Pin
Dave Kreskowiak14-Aug-07 12:25
mveDave Kreskowiak14-Aug-07 12:25 
QuestionReporting framework for .NET - Open Source Pin
Yuval Naveh14-Aug-07 8:04
Yuval Naveh14-Aug-07 8:04 
AnswerRe: Reporting framework for .NET - Open Source Pin
Pete O'Hanlon15-Aug-07 2:23
mvePete O'Hanlon15-Aug-07 2:23 
GeneralRe: Reporting framework for .NET - Open Source Pin
Yuval Naveh15-Aug-07 3:28
Yuval Naveh15-Aug-07 3:28 
GeneralRe: Reporting framework for .NET - Open Source Pin
Paul Conrad16-Aug-07 15:56
professionalPaul Conrad16-Aug-07 15:56 
QuestionCLR Pin
MarKus014-Aug-07 3:06
MarKus014-Aug-07 3:06 
AnswerRe: CLR Pin
Dave Kreskowiak14-Aug-07 3:15
mveDave Kreskowiak14-Aug-07 3:15 
GeneralRe: CLR Pin
MarKus014-Aug-07 3:50
MarKus014-Aug-07 3:50 

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.