what is the equivalent of this code?

Originally Posted 4 April 2017, 1:55 pm EST

  • Originally Posted 4 April 2017, 1:55 pm EST

    hello guys!
    what is the equivalent of the following vb.net code that uses C1FlexGrid to be used with DataGridView?
    for i = 0 to 10
    me.c1flexgrid.row += 1
    next i

    how can i write the above code if i want to use datagridview?
  • Marked as Answer



    Following is the equivalent code that can be used to achieve similar functionality in DataGridView:
    For i = 0 To 10
    Me.DataGridView1.CurrentCell = DataGridView1.Rows(i).Cells(0)
    DataGridView1.CurrentCell.Selected = False

    I have attached a sample application having C1FlexGrid and DataGridView side by side and performing the same functionality.

    Also, I would like to inform you that this is a public forum of GrapeCity (ComponentOne) and is meant to discuss issues related to ComponentOne controls.

    Ruchir Agarwal
Need extra support?

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

Learn More

Forum Channels