Skip to Content
author's profile photo Former Member
Former Member

Programmatically changing the value of cell in a matrix

I have a matrix where all the columns are connected to user data sources. The user can enter/edit data. When the user tabs off one particular column, I bring up a search screen where the user can select a value/item, but how do you set the matrix cell value to the value/item selected by the user?

I have tried:

SAPbouiCOM.EditText edText = (EditText)Grid.Columns.Item("Col3").Cells.Item(SomeRowNumber).Specific;

edText.Value = SomeNewValue;

But this does not work. I have also tried setting the value of the user data source bound to the column but that also does not work. Any help would be greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2004 at 03:36 AM

    I've found the solution to my problem by using the SetLineData method of the Matrix.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2004 at 03:59 PM

    This code surely works :

    oMatrix.Columns("yourcolumn").Cell(yourRow).Specific.String = "something"

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.