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

Binding to row number

2 Answers 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Jan 2012, 06:15 PM
I would like to bind a data trigger in a style trigger based on a row number. I need to suppress a value in a cell but only for the first row.

I'm not sure what property to bind to to get the row index or something similar.

Any help would be greatly appreciated.

Thanks,

John

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Jan 2012, 07:55 AM
Hello John,

I would recommend you to run through this demo for a reference. Furthermore, you might try using StyleSelector-s instead. Please refer to our online documentation and demos for additional information. 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
John
Top achievements
Rank 1
answered on 01 Feb 2012, 02:57 PM
Style selectors definitely seems like the right way to go to hide the cell. What I am more stuck on is how to bind the style to ONLY ROW 1 of the grid.

Any help would be greatly appreciated.

Thanks,

John
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Maya
Telerik team
John
Top achievements
Rank 1
Share this question
or