cancel
Showing results for 
Search instead for 
Did you mean: 

How to Enter the Data in Matrix Columns Manually

Former Member
0 Kudos

Hi,

I have a problem. I created a object Matrix in my form and load with object DBDataSource, of this form follow example:

oColumns = oGridNew.Columns;

oDBDataSource = oFormLanguage.DataSources.DBDataSources.Add("@TBDEPENDENTE")

oColumn = oColumns.Item("colIR");

oColumn.Editable = true;

oColumn.DataBind.SetBound(true, "@TBDEPENDENTE", "U_DepIR");

oColumn = oColumns.Item("colTipo");

oColumn.Editable = true;

oColumn.DataBind.SetBound(true, "@TBDEPENDENTE", "U_Type");

oColumn = oColumns.Item("colSexo");

oColumn.Editable = true;

oColumn.DataBind.SetBound(true, "@TBDEPENDENTE", "U_Sex");

oGridNew.Clear();

oGridNew.AutoResizeColumns();

oDBDataSource.Query(oConditions);

oGridNew.LoadFromDataSource();

But i can´t to enter data at blanks lines of the Matrix. I only can to edit the data of the DBDataSource. Somebody can i help me?

thanks,

Vladimir

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Once you have loaded the data you need to add rows to the matrix.

LoadFromDataSource()--> this will load the data that satisfies the conditions and to add more lines

After this line oGridNew.LoadFromDataSource()

place this code oGridNew.addrow()

once you enter validdata in the required fields add one more row.

Hope this Helps

Regards

Vishnu

Answers (0)