I would like to sum all the values in a row and display them in a column that will be added programmatically. The grid has auto-generated the pre-existing columns.
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
How do I access the new column programmatically bearing in mind that all the other columns are auto-generated??
How do I add such a column programmatically? In which event??
Regards,
Sam
0
Tsvetoslav
Telerik team
answered on 14 May 2010, 10:56 AM
Hello Sam,
You can safely add the column on Page_Load. I understand that the other columns might not be available at that stage, however, you can get the data fields for the calculated column through a database operation or if you are using a data-source object, then you already know what those fields are. If you need more concrete directions could you paste your complete mark-up and code-behind (do use the code-formatter tool of the ticket editor. It is important to demonstrate how the grid is data-bound.
Thanks.
Greetings,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.