We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Create controls at runtime in Gridgroupingcontrol

Hi,

I want to create controls at run time in a column of the grid.
I have a total of 3 columns.
I have to take value from the 2nd column in the grid and display the data in table controls in the 3rd column.
Is it possible to create controls for each row on run time on the gridgrouping control?

Also, would like to know whether this can be done using the DataBound event? Couldn't find ant other applicable event.
Before using Syncfusion I was using the ItemBound/Rowbound event for the same.

Please help!


2 Replies

LA Lakshmi April 24, 2008 04:00 PM UTC

Hi,
To be more clear, am just looking for an equivalent of FindControl and Addcontrol in GridGroupingControl.

>Hi,

I want to create controls at run time in a column of the grid.
I have a total of 3 columns.
I have to take value from the 2nd column in the grid and display the data in table controls in the 3rd column.
Is it possible to create controls for each row on run time on the gridgrouping control?

Also, would like to know whether this can be done using the DataBound event? Couldn't find ant other applicable event.
Before using Syncfusion I was using the ItemBound/Rowbound event for the same.

Please help!





JO Johnson Syncfusion Team April 25, 2008 02:11 AM UTC

Hi Lakshmi,

Thank you for using Syncfusion products.

Here I have attached the sample, that fulfills below of the requirements.

1)How to add the Control in runtime to GridGrroupingControl.
2)How to fetch the value from one record and set to another column.

Please refer the sample for Implementation.


http://websamples.syncfusion.com/Samples/Grid.Web/6.1.0.34/I44025/main.htm



Please let me know if you need further assistance.

Best regards,
Johnson




Loader.
Live Chat Icon For mobile
Up arrow icon