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

show different columns when editing a row

5 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 21 Sep 2012, 08:55 PM
I have a grid with 4 columns in it.  when the user want's to add a new or edit an existing row though i need to show about 10 columns for entry.  Is this possible?  if so, how do i accomplish that?

Thanks!

5 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 24 Sep 2012, 08:21 PM
anyone have any ideas?  this is a requirement for my project, if the grid won't do this i'll have to use something else.

Thanks!
0
Don
Top achievements
Rank 1
answered on 24 Sep 2012, 09:09 PM
Perhaps setting the additional columns IsVisible property to True in the GridViewRowInfo.OnBeginEdit event handler will give you the functionality you require.
0
Stefan
Telerik team
answered on 25 Sep 2012, 01:20 PM
Hi John,

Perhaps you can use the approach demonstrated in the following Knowledge Base article for your scenario: http://www.telerik.com/support/kb/winforms/gridview/create-pop-up-user-control-for-row-editing.aspx? If not, please provide me with exact details how do you expect such a functionality to work and I will help you achieve it.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
John
Top achievements
Rank 1
answered on 26 Sep 2012, 02:15 PM
Thanks Stephan, that looks like it'll work for me.  in the example there's a button that pops the user control out.  is there a way to do it when clicking on the standard add new row that the grid puts there for you?

Thanks!
0
Accepted
Stefan
Telerik team
answered on 29 Sep 2012, 07:46 AM
Hi John,

Thank you for writing back.

I have slightly changed the example to show the custom cell for all new row cells and when you click the save button to add a new row with the added data. Please refer to that attachment.

Let me know how this works for you.
 
Greetings,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Don
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or