
Hi,
I have a RadListview on a form connected to a datasource. Then I have a timer which call a method that refreshs the content of the DataTable periodically. After starting it shows the content correctly. But as soon as the DataTable is refreshed for the first time I ran into problems.
The RadListView itself seems not to recognize when the underlying DataTable is changing. That's no problem so I have to tell the RadListView to refresh. My first try was the Refresh() Method. That seemed not to work. So I've tried to reassign the DataTable to the RadListView in setting it again as DataSource. This will throw an exception that a column is not contained in the table (more precisely it's the first column). Looking in to the underlying DataTable the column is included.
Wrapping the commands into BeginUpdate() and EndUpdate() makes no change.
Surely I have something overlooked to make it work. Any help is welcome.
Michael

internal class CustomVisualItem : IconListViewVisualItem {protected override void PaintElement(Telerik.WinControls.Paint.IGraphics graphics, float angle, SizeF scale) { base.PaintElement(graphics, angle, scale); var t = this.Data.DataBoundItem as CustomClass; if (t != null) { if CustomClass.Disabled) { //To shorten the sample, only draw a rectangle graphics.FillRectangle(BoundingRectangle, Color.Silver); // The rectangle is not placed over the VisualItem } } }}