Skip to main content
1-Visitor
March 5, 2018
Solved

Dynamically change Add Row Property Programmaticly

  • March 5, 2018
  • 1 reply
  • 2731 views

Hi

 

Does anyone know how to change the AddRow property dynamically? (circled below)  is this possible or are there alternatives?

 

 Capture.JPG

 

 

Best answer by smayer

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. 

 

Capture.JPG

1 reply

5-Regular Member
March 6, 2018

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.

smayer1-VisitorAuthorAnswer
1-Visitor
March 6, 2018

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. 

 

Capture.JPG

5-Regular Member
March 6, 2018
Thanks for sharing, that also sound good. However, if i understand it right the value insert in that will only work if the dataType is the same?