08-17-2005 1:31 PM
Hello,
I am working with an addon that add a button to a from. This button, add a row a to a matrix, but when a row is added, the fields are bisabled. How can I put them available? Thanks...
Julia
08-17-2005 1:46 PM
Hi Julia,
You should be a bit more specific..... "Matrix" is a table control or a grid control and field disabled means you can see the fields but they are not input-enabled?
Regards,
John.
08-17-2005 1:54 PM
John,
Sorry about my english. Your interpretation was exactly what I was trying to say. Matrix is a grid control in the form. I see the fiels, but when I try to put a new value, a get this message: Invalid Form Item.
Thank you very much,
Julia
08-17-2005 1:58 PM
Hi Julia,
Your English is ok! Could you please post the piece of coding where you add the row to the Grid Control?
Regards,
John.
08-17-2005 2:35 PM
John, this is a piece of my code:
OGrid.AddRow()
ll_i = ll_i + 1
OGrid.Columns.Item("2").Cells.Item(ll_i).Specific.Value = ls_field
I explain a little more my process:
I cross a file, and by each line of the file I insert a row in the grid. This way the new row is disabled. But if I insert a row manually, using the "tab" key of the previous row, i get a new row available. Perhaps if I could force this behavior?
I hope that you understand to me.
Thanks again.
Julia
08-17-2005 5:19 PM
The solution to my problem was to add this line:
OGrid.GetLineData(ll_i)
Thanks.
Julia