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
Luc Pattyn17-Aug-07 7:38
sitebuilderLuc Pattyn17-Aug-07 7:38 
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 
I am having a Select Query which is suppose to select multipple records from a table (MS-Access). I am using OLEDB from my connection and using OLEDB Adapter and datasets to desplay data. But I want to perform an operation on Each records after selecting from the DB- Which I want to Diaplay to the Data Grid also. But By using the OLEDB i am unable to collect the information from the records before binding. Is any way there to take the records and operate on it before binding, and using OLEDB ?

Dim con As OleDbConnection<br />
    Dim cmd As OleDbCommand = New OleDbCommand<br />
    Dim dataSet As dataSet = Nothing<br />
Sub BindGrid()<br />
        Dim oleDbDataAdapter As OleDbDataAdapter = Nothing<br />
        Dim ConnectionString = System.Configuration. _<br />
 ConfigurationSettings.AppSettings(ConConstant.MS_ACCESS_CONNECTION_STRING)<br />
        ' Ge the sql query<br />
        Dim SelectQueryText As String = String.Empty<br />
        SelectQueryText = "Select Leave_Code as LeaveCode,Leave_Name as LeaveName,NoOfDays as Days  from Leave_Mstr"<br />
        oleDbDataAdapter = New OleDbDataAdapter(SelectQueryText, _<br />
        New OleDbConnection(ConnectionString))<br />
        ' Create the data set<br />
        dataSet = New DataSet<br />
        ' Fill the data set with the data<br />
        oleDbDataAdapter.Fill(dataSet)<br />
        If (Not oleDbDataAdapter Is Nothing) Then<br />
            oleDbDataAdapter = Nothing<br />
        End If<br />
        With dgLeavCrtnLeavDtls<br />
            .DataSource = dataSet<br />
            .DataMember = dataSet.Tables(0).TableName<br />
            .DataBind()<br />
        End With<br />
    End Sub<br />
    Sub tablebind()<br />
        Dim oleDbDataAdapter As OleDbDataAdapter = Nothing<br />
        Dim ConnectionString = System.Configuration. _<br />
         ConfigurationSettings.AppSettings(ConConstant.MS_ACCESS_CONNECTION_STRING)<br />
        ' Ge the sql query<br />
        Dim SelectQueryText As String = String.Empty<br />
        SelectQueryText = "Select Leave_Code as LeaveCode,Leave_Name as LeaveName,NoOfDays as Days  from Leave_Mstr"<br />
        oleDbDataAdapter = New OleDbDataAdapter(SelectQueryText, _<br />
        New OleDbConnection(ConnectionString))<br />
        ' Create the data set<br />
        dataSet = New DataSet<br />
        ' Fill the data set with the data<br />
        oleDbDataAdapter.Fill(dataSet)<br />
        Dim dh As TableHeaderCell<br />
        Dim dc As DataColumn<br />
        Dim dr As DataRow<br />
        For Each dr In dataSet.Tables(0).Rows<br />
            Dim trow As New TableRow<br />
            For Each dc In dataSet.Tables(0).Columns<br />
                Dim tcell As New TableCell<br />
                tcell.Controls.Add(New LiteralControl(dr(dc.ColumnName).ToString))<br />
                trow.Cells.Add(tcell)<br />
            Next<br />
        Next<br />
    End Sub

This is the function I am using to desplay values to tables.Here i want to take the All the available leave codes to an array or some variable and want to process on it.


Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd

AnswerRe: Is any Record Set Concept is there in OLEDB Pin
Scott Dorman17-Aug-07 10:26
professionalScott Dorman17-Aug-07 10:26 
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 

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.