This is a migrated thread and some comments may be shown as answers.

[Solved] GridCommandItem Template

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
g
Top achievements
Rank 1
g asked on 15 May 2008, 04:24 PM
I have a hierarchical grid (as many as 10 levels deep) with two detail tables at each level.

It's working fine, with a couple of issues I'd like to resolve.  Here's the first one:

On one of the detail tables, I'd like to add a GridCommandItem with a value from the Parent table.  For example, let's say the Master table represents Organization A.  I want the GridCommandItem on one of the detail tables to say "Users from Organization A". 

I know how to create the GridCommandItem, and I know how to associate a template with it, but I'm not sure how to pass it the parent organization's name, or how to obtain it in the template class.

Edit:  I'm doing all grid creation programmatically. 

Can anyone help me?  thank you!

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 May 2008, 07:32 AM
Hi,

Go through the following help article.
Extracting primary key value for parent item in hierarchy on Update/Insert

Princy.
Tags
Grid
Asked by
g
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or