General information
Category:
Forms & Form designer
>>>>How can I access a cell in a grid? I have some codes at form level, in which I need to assign a value to some cells in a grid. I can use thisform.ActiveControl.Collumns(i).Controls(2) to get to the collumn. But how can I go further to get to the cell?
>>>>
>>>>Thanks in advance.
>>>
>>>You can use Grid.ActiveRow and .ActiveColumn properties.
>>>
>>>Nick
>>
>>Yes, I can get active Row and Column numbers. But how can I address the active cell in the code?
>
>You can use Grid.ActivateCell(nRow, nCol)
>
>Nick
Nick,
Thank you very much. It works.
Wei
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only