Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi
Does anyone know how to change the AddRow property dynamically? (circled below) is this possible or are there alternatives?
Solved! Go to Solution.
Thanks for that @supandey! As I was trying to implement your answer I found another solution that worked for me, this seemed to be simple enough.
Hi @smayer since the row object is adding value to the infotable which depends on the underlying DataShape. My understanding is that you could test by calling the DataShape.AddFieldDefinition() or DataShape.UpdateFieldDefinition or DataShape.RemoveFieldDefinition prior to calling AddRow() to basically edit the underlying DataShape and this should give you the required property to work with when AddRow() is called on the InfoTable.
Feel free to correct me if i didn't get your use case right.
Thanks for that @supandey! As I was trying to implement your answer I found another solution that worked for me, this seemed to be simple enough.
Yes, you are right, that would be its limitation. However, for my use case, I will always be expecting a number data type.