The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I''m drawing some text in the header of my GridControl
How can i trigger a redrawing of cell manually
I can''t figure out how to use cellDrawn event
Thanks
Silver
I don''t understand your problem, do you really want to trigger a redraw in the cellDrawn? Be carefull about infinite recursive calls then. But you might wanna try CurrentCell.Refresh()
ADAdministrator Syncfusion Team July 7, 2005 11:38 AM
Are you using e.Graphics.DrawString in your CellDrawn event handler to draw the text you want to see when e.ColIndex points to the column where the text should be, and e.RowIndex i s zero?
ADAdministrator Syncfusion Team July 8, 2005 03:27 AM
Yes Clay this is exactly what i do.
I draw on the suface since i handle manually many other drawing items on the header cell.
Silver
ADAdministrator Syncfusion Team July 8, 2005 03:32 AM
If you want to trigger the redrawing of a cell, the you can call grid.RefreshRange passing it a GridRangeInfo object containing the cell. But as Martin noted, if you try to do this from one of the drawing events, you have to use a flag avoid recursive calls. But calling grid.RefreshRange from outside the drawing code should trigger the drawing.