on 11-14-2007 12:55 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.