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

Sample source analysis entrusts

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lee
Top achievements
Rank 1
lee asked on 03 Aug 2010, 01:50 AM
There are 6 errors. Amendment entrusts

MainPage.xaml.cs
//Error 1
MessageBox.Show(this.RadGridView1.Records.Count.ToString());
//Error 2
string TestNum = "";
if (RadGridView1.Records.Count > 0)
{
    for (int i = 0; i < RadGridView1.Records.Count; i++)
    {
        TestNum += i + " : Check OK! \n";
    }
    MessageBox.Show(TestNum.ToString()); 
}
//Error 3
DatePickerEditorSettings datePickerEditorSettings = new DatePickerEditorSettings();
//Error 4
this.RadGridView1.ValidationMode = ValidationMode.Cell;
//Error 5
ComboBoxEditorSettings comboBoxEditorSettings = new ComboBoxEditorSettings();

MainPage.xaml
<telerik:RadGridView x:Name="RadGridView1" DataMemberPath="Name">
Error : DataMemberPath


Existing source version  : Q1 2009 (version 2009.1.312)

The fringe land wants the version which : Q1 2010 SP2 (version 2010.1.0603)

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 04 Aug 2010, 02:55 PM
Hi lee,

Here is the updated code:

//Error 1 
MessageBox.Show(this.RadGridView1.Items.Count.ToString());
//Error 2 
string TestNum = "";
if (RadGridView1.Items.Count > 0)
{
    for (int i = 0; i < RadGridView1.Records.Count; i++)
    {
        TestNum += i + " : Check OK! \n";
    }
    MessageBox.Show(TestNum.ToString());
}
//Error 3 
// no need to use DatePickerEditorSettings. You can use GridViewDataColumn
DatePickerEditorSettings datePickerEditorSettings = new DatePickerEditorSettings();
//Error 4 
// ValidationMode is no tlonger available - cells will be validated by default
this.RadGridView1.ValidationMode = ValidationMode.Cell;
//Error 5 
// no need to use DatePickerEditorSettings. You can use GridViewComboBoxColumn
ComboBoxEditorSettings comboBoxEditorSettings = new ComboBoxEditorSettings();

You can also check our these help topic that will get you get you acquainted with our latest changes:

GridView columns

Managing data


Greetings,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
lee
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or