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

[Solved] How to rename column header using key press F2 ?

0 Answers 132 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kannan
Top achievements
Rank 1
Kannan asked on 11 Feb 2011, 03:24 PM
Hi All,

I'm using rad grid view and having few columns.

I need to rename the column header at runtime.

ie when the user press F2, the column header should go to edit mode and the user should enter the new header text there itself. (Same as like renaming the folder / file name in the explorer)

I can do this by setting TextBox as the header (when user presses F2) and TextBlock (when focus got changed) as the header.

Is there any other better way to do this (using template or style) ? If so please let me know. Thanks !

Thanks & Regards,
Kannan
Tags
GridView
Asked by
Kannan
Top achievements
Rank 1
Share this question
or