MS
Mohamed Suhaib Fahad A.
Syncfusion Team
October 28, 2009 01:09 PM UTC
Hi Attoumani,
Thanks for the details. Can you make a call to grid.Model.InvalidateVisual(true);, that way the dirty cells would be refreshed.
Also keep track of our website, we are going to launch the new Essential Studio Volume 4 RC soon, we have included several new features and updates to the Silverlight Grid.
Please let me know if you need any more details.
Thanks,
Fahad
AT
Attoumani
October 28, 2009 01:49 PM UTC
Thx for your answer !
But i think i missing something when i initialize the grid !
Event Model_QueryCellInfo ( .... ) is called
But new value are not displayed.
// Actual rows
else if ((e.Cell.ColumnIndex > 0) && (e.Cell.RowIndex > 0))
{
lock (orderBook)
{
FeedValue value = listOfFeedInformation[e.Cell.RowIndex-1];
e.Style.CellValue = e.Cell.ColumnIndex > 1?value.Value:value.Key;
e.Style.CellValue = e.Cell.ColumnIndex > 1?value.Value:value.Key;
e.Handled = true;
}
}
AT
Attoumani
October 28, 2009 02:55 PM UTC
Changing TraderGridTest :
-------------- FROM ---------------------
SolidColorBrush[] colors = new SolidColorBrush[] {
new SolidColorBrush(Color.FromArgb( 0xff, 0x85, 0xbf, 0x75 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xb4, 0xe7, 0xf2 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xff, 0xbf, 0x34 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0x82, 0x2e, 0x1b )),
new SolidColorBrush(Color.FromArgb( 0xff, 0x3a, 0x86, 0x7e )),
};
-----------------------------------------
------------------TO --------------------
SolidColorBrush[] colors = new SolidColorBrush[] {
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
};
-----------------------------------------
Can't see update ^^
is it possible that the grid displays values only 'e.Style.Background' is updated ?
AT
Attoumani
October 28, 2009 03:17 PM UTC
digging :)
foreach (var i in indexOfChange)
{
feedGridControl.Model.InvalidateCell(new RowColumnIndex(i, 2));
feedGridControl.RefreshCellUIElementsContent(new RowColumnIndex(i, 2));
feedGridControl.Model.InvalidateVisual(true);
}
without changing Background Color Cell is update