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

radGridView.NewRowPosition = GridViewNewRowPosition.None do not work

3 Answers 175 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 28 Oct 2013, 12:50 PM
My version is 2013.3.1016.1050,

when i use
radGridView.NewRowPosition = GridViewNewRowPosition.None ;

it do not work,the new row still show.

But when i use
radGridView.ShowInsertRow = false ;
The new row is disappeared. But the compiler give me a message:  warning CS0618: 'Telerik.Windows.Controls.GridView.GridViewDataControl.ShowInsertRow' is obsolete: 'This property is obsolete. Please, use the NewRowPosition="Top"'.

Anyone can help me?


3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 28 Oct 2013, 01:28 PM
Hello Thomas,

I've tried to reproduce the problem you report, but to no avail. I have attached my test project for a reference.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Thomas
Top achievements
Rank 1
answered on 29 Oct 2013, 06:14 AM
Thanks your test project.And I found the reason,please note.

My xmal codeļ¼š

<telerik:RadGridView
    CanUserResizeRows="True"
    CanUserResizeColumns="True"
    AlternationCount="0"
    IsSynchronizedWithCurrentItem="True"
    CanUserInsertRows="True"
    CanUserDeleteRows="True"
    IsReadOnly="False"
    ShowInsertRow="False"
    Margin="-10"
    ShowColumnFooters="True"
    >
...

In this Case,The NewRowPosition  property do not work when I use it in C# code.But It work  again when I remove ShowInsertRow="False"  from xmal code.





0
Yoan
Telerik team
answered on 29 Oct 2013, 05:29 PM
Hello Thomas,

Actually, the ShowInsertRow property is marked as obsolete. The idea is to use only - NewRowPosition.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or