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

[Solved] Remove column from grid view on button click

4 Answers 169 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.
Dhileep Kumar Sampath
Top achievements
Rank 1
Dhileep Kumar Sampath asked on 28 Oct 2009, 01:27 PM
Hi All,
       I want to remove the currently selected column in the grid view on a button click. For this, i should select the entire column (as in excel) when the user clicks on the particular column in the row header and enable the remove button. When user clicks the remove button, the current selected column should be removed from the grid. Is there any sample/suggestion available for this functionality.

Regards,
Dhileep

4 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 28 Oct 2009, 03:19 PM
Hello Dhileep Kumar Sampath,

The attached example demonstrates a possible approach . To see it in action just run the project, click on a column header and press the 'remove column button'.

Let me know if you have troubles adapting this to your scenario.

Sincerely yours,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dhileep Kumar Sampath
Top achievements
Rank 1
answered on 29 Oct 2009, 09:06 AM
Hi Pavel Pavlov,
              Thanks for sending me the sample. It worked like a charm.

Regards,
Dhileep
0
Julio Morel
Top achievements
Rank 1
answered on 30 Nov 2009, 12:26 PM
Hi, I need to do the same thing but on ASP.NET, not desktop. Is it simillar?

Julio
0
Vlad
Telerik team
answered on 30 Nov 2009, 12:39 PM
Hello Julio,

Since this forum is for RadGridView for Silverlight it will be better if you post your question in the relevant ASP.NET AJAX forum.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Dhileep Kumar Sampath
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Dhileep Kumar Sampath
Top achievements
Rank 1
Julio Morel
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or