Get Value C1FlexGrid with Data Mapping

Posted by: rs-automatic on 19 August 2019, 2:26 pm EST

  • Posted 19 August 2019, 2:26 pm EST

    Hi, I'm have a code

    https://www.grapecity.com/forums/winforms-edition/export-c1flexgrid-with-dat#hithank-you-for-contacting_1


    Dim c As C1.Win.C1FlexGrid.Column = C1FlexGrid1.Cols(1)

    Dim dtMap As ListDictionary = New ListDictionary()
    dtMap.Add(1, "Apple")
    dtMap.Add(2, "Avocado")
    dtMap.Add(3, "Sky")
    dtMap.Add(4, "Coal")
    dtMap.Add(5, "Snow")

    c.Name = "DataMap"
    c.DataType = GetType(Integer)
    c.DataMap = dtMap

    C1FlexGrid1(1, 1) = 1
    C1FlexGrid1(2, 1) = 2
    C1FlexGrid1(3, 1) = 3

    ' the generated the original data not the mapped one
    MessageBox.Show(C1FlexGrid1(1, 1).ToString) ' = 1

    'How can i view DataDisplay (data mapping) from Code ?
    'Error!!
    MessageBox.Show(C1FlexGrid1(1, 1).DataDisplay) 'error

  • Marked as Answer

    Replied 19 August 2019, 3:03 pm EST

    Hi,

    This has already been replied over here:
    https://www.grapecity.com/forums/winforms-edition/export-c1flexgrid-with-dat

    Thanks.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels