Click here to Skip to main content
12,997,210 members (75,657 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
End Sub
Posted 20-Jul-11 0:33am
Updated 20-Jul-11 0:35am

1 solution

Rate this: bad
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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 4 Aug 2011
Copyright © CodeProject, 1999-2017
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