or
System.InvalidOperationException: {"Could not find neighbour element!"}
and the stack trace is atTelerik.WinControls.UI.Export.ExportToExcelML.SearchForNeighbourElement(List`1 radElementList, Int32 index) at Telerik.WinControls.UI.Export.ExportToExcelML.CreateStyleElement(GridViewRowInfo gridViewRowInfo, Int32 cellIndex) at Telerik.WinControls.UI.Export.ExportToExcelML.CreateRowElement(WorkBookElement workbook, GridViewRowInfo gridViewRowInfo) at Telerik.WinControls.UI.Export.ExportToExcelML.AddWorkSheetWithHeaderRow(WorkBookElement workbook, FileStream fileStream, Int32& currentSheet, Int32& currentRow) at Telerik.WinControls.UI.Export.ExportToExcelML.RunExport(String fileName)
Dim cc As New ExportToExcelML(grid)
cc.ExportVisualSettings = True
cc.RunExport(saveFileDialog1.FileName)
Imports
System.ComponentModel
Public
Class
Form1
Private
Sub
Form1_Load(sender
As
System.
Object
, e
As
System.EventArgs)
Handles
MyBase
.Load
Dim
foo
As
New
BindingList(Of Person)
Dim
i
As
Integer
Do
Until
i = 100
foo.Add(
New
Person(
"Name "
& i.ToString))
i = i + 1
Loop
RadGridView1.DataSource = foo
End
Sub
Public
Class
Person
Property
Name
As
String
Public
Sub
New
(
ByVal
Name
As
String
)
_Name = Name
End
Sub
End
Class
Private
Sub
RadGridView1_FilterChanging(sender
As
Object
, e
As
Telerik.WinControls.UI.GridViewCollectionChangingEventArgs)
Handles
RadGridView1.FilterChanging
TextBox1.Text = e.NewItems(0).ToString
TextBox2.Text = e.NewValue
If
e.OldItems IsNot
Nothing
Then
TextBox3.Text = e.OldItems(0).ToString
TextBox4.Text = e.OldValue
End
If
End
Sub
End
Class
Private
Sub
RadMaskedEditBox1_ValueChanging(sender
As
Object
, e
As
System.ComponentModel.CancelEventArgs)
Handles
RadMaskedEditBox1.ValueChanging
MessageBox.Show(
"Value="
& RadMaskedEditBox1.Value)
End
Sub
cm =
new
RadContextMenu();
foreach
(
string
g
in
groups)
{
RadMenuItem mnu =
new
RadMenuItem();
mnu.Text = g;
mnu.Click +=
new
EventHandler(cmclick);
cm.Items.Add(mnu);
}
cm.Show(radChart1,
new
Point(0, 0));