Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC10.0
DataGridTextColumn in VC2010 WPF VB. how do i insert all this data to grid.
 
please if anybody can help me i will appresiate it a lot
Public Sub UpdateChannelState()
        Dim nTemp As Int32
        Dim str As String
        Dim i As Int32
 
        For i = 0 To MaxLine - 1
            nTemp = SsmGetChType(i)
            If (nTemp = -1) Then
                MessageBox.Show("Fail to call SsmGetChType")
            ElseIf (nTemp = 12) Then
 
                Select Case (ChannelState(i).WorkState)
                    Case CH_IDLE
                        str = "Idle"
                    Case CH_RING
                        str = "Ringing"
                    Case CH_ACTIVE
                        str = "Active"
                    Case CH_OFFLINE
                        str = "Offline"
                    Case CH_WAITFOR_ONHOOK
                        str = "WaitforOnhook"
                End Select
 
                str = ""
                str = System.Text.Encoding.ASCII.GetString(ChannelState(i).pCallId)
                str = ""
                str = System.Text.Encoding.ASCII.GetString(ChannelState(i).Lcd)
                str = ""
 
                Select Case (ChannelState(i).Dir)
                    Case UNKNOWN
                        str = "Unknown"
                    Case UP
                        str = "Call out"
                    Case DOWN
                        str = "Call in"
                End Select
            End If
        Next
End Sub
Posted 20-Jul-11 1:33am
Edited 20-Jul-11 1:35am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I think there you need to create an object of the data gird class and in that you will have
m_grid.SetDataSource(LUNKNOWN pRs);
where pRs is the record set its in VC++ i think u will have similar function in VB try and sorry if am worng
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 4 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100