This commit is contained in:
parent
a54391cc69
commit
d8071395fe
@ -846,8 +846,6 @@ namespace Volian.Controls.Library
|
||||
//XmlDocument xd = new XmlDocument();
|
||||
//xd.LoadXml(MyItemInfo.MyContent.MyGrid.Data);
|
||||
//using (StringReader sr = new StringReader())
|
||||
MyFlexGrid.Clear();
|
||||
MyFlexGrid.MergedRanges.Clear();
|
||||
Initializing = true;
|
||||
MyFlexGrid.LoadGrid(MyItemInfo);
|
||||
Initializing = false;
|
||||
|
@ -208,7 +208,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
MyFlexGrid.CopyOptionChanged += new VlnFlexGridEvent(MyFlexGrid_CopyOptionChanged);
|
||||
MyFlexGrid.SelChange += new EventHandler(MyFlexGrid_SelChange);
|
||||
Console.WriteLine("Turn on SelChange");
|
||||
//Console.WriteLine("Turn on SelChange");
|
||||
}
|
||||
}
|
||||
void MyFlexGrid_CopyOptionChanged(object sender, EventArgs args)
|
||||
|
@ -538,12 +538,31 @@ namespace Volian.Controls.Library
|
||||
if (StepRTB.MySymbolFontName != "Arial Unicode MS")
|
||||
str = _ReplaceArialUnicodeMS.Replace(str, "$1" + StepRTB.MySymbolFontName + "$3");
|
||||
str = _ReplaceTextFont.Replace(str, "$1" + ff.Name + "$4");
|
||||
// To prevent scroll bars from being flashed on/off
|
||||
// - save an image of the current grid
|
||||
// - set Visible to false
|
||||
// - draw the saved grid image
|
||||
// - do the the load/reload of the grid
|
||||
// - set Visible back to true.
|
||||
System.Drawing.Image img = this.CreateImage();
|
||||
Visible = false;
|
||||
if (Parent is GridItem)
|
||||
{
|
||||
using (Graphics gr = (Parent as GridItem).CreateGraphics())
|
||||
{
|
||||
gr.DrawImage(img, Left, Top);
|
||||
}
|
||||
}
|
||||
Clear();
|
||||
MergedRanges.Clear();
|
||||
using (StringReader sr = new StringReader(str))
|
||||
{
|
||||
ReadXml(sr);
|
||||
this.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None;
|
||||
sr.Close();
|
||||
}
|
||||
Visible = true;
|
||||
|
||||
}
|
||||
private void SetupGrid(int numrows, int numcols) //C1FlexGrid NewGrid()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user