or
private
void
GrideInfoList_ViewCellFormatting(
object
sender, CellFormattingEventArgs e)
{
if
(e.CellElement
is
GridRowHeaderCellElement)
{
string
er = e.Row.ErrorText;
if
(!String.IsNullOrEmpty(er))
{
var cell = (GridRowHeaderCellElement)e.CellElement;
var ip = (Telerik.WinControls.Primitives.ImagePrimitive)cell.Children[0]
as
Telerik.WinControls.Primitives.ImagePrimitive;
if
(ip.Image !=
null
)
{
ip.Image = GetData.Properties.Resources.red;
ip.Alignment = ContentAlignment.MiddleRight;
}
}
}
}
private
void
GrideInfoList_PageChanged(
object
sender, EventArgs e)
{
GrideInfoList.TableElement.Update(GridUINotifyAction.StateChanged);
}
Private
Sub
RadListView1_VisualItemFormatting(sender
As
Object
, e
As
ListViewVisualItemEventArgs)
Handles
RadListView1.VisualItemFormatting
e.VisualItem.ImageLayout = ImageLayout.Stretch
If
Convert.ToInt32(e.VisualItem.Tag) / 2 = 0
Then
'images
e.VisualItem.BackColor = Color.Azure
e.VisualItem.Size =
New
Size(950, 259)
Else
'descripcion of image
e.VisualItem.BackColor = Color.Black
e.VisualItem.Font =
New
Font(
"Consolas"
, 20, FontStyle.Bold)
e.VisualItem.Size =
New
Size(950, 50)
End
If
End
Sub
Imports
Telerik.WinControls
Imports
Telerik.WinControls.UI
Imports
Telerik.WinControls.UI.Export
Imports
Telerik.WinControls.Data
But I can't get ExportToExcelML method to come up when I code
Dim
exporter As ExportToExcelML = New ExportToExcelML(Me.gridview)
Did I miss anything?
class
MyClassA : INotifyPropertyChanged
{
String Porperty1 {
get
;
set
;}
BindiingList<MyClassB> Items {
get
;
set
;}
//...
}
class
MyClassB : INotifyPropertyChanged{
String Property1 {
get
;
set
;}
int
Property2{
get
;
set
;}
//...
}
private
void
dataGrid_CellValueChanged(
object
sender, GridViewCellEventArgs e)
{
//if the column is from the child view we must handle the change to the data model directly
if
(e.Column.OwnerTemplate == gridViewTemplate1)
{
var b = e.Row.DataBoundItem
as
MyClassB;
var property =
typeof
(MyClassB).GetProperty(e.Column.FieldName);
property.SetValue(b, e.Value,
null
);
}
}