Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
UltraGrid with custom control
posted

Attached(TestUltraGrid.zip) is the sample project to describe my requirements and issues.

I have an UltraGrid with 1 column and each row having a custom control inside it.

Requirement1: I need to have only one row inside the grid initially and on click of it, a new row with user control should automatically get added to the grid. User can add as many rows as he wants. Temporarily, i have added 3 rows by default for the time being.

Requirement2: Click on the button in each row of the grid so that the the textbox will be populated with text. On click of the OK button on the form, i need to store all the texts inside each row to an array list.

Issue1: I click on the button in first row. Text gets displayed in 1st row. Now, when i click on the button in second row, the text in first row is lost. How to fix this?

Please let me know how to achieve these requirements. Please reply with your suggestions and findings. Thanks.