Fixed a problem when Table ROs where updated (from Get Latest RO Values)

Fixed a table conversion problem. Needed to remove extra ‘\r’ characters
This commit is contained in:
2011-10-10 13:07:32 +00:00
parent d18d0d97c8
commit 0158228eeb
2 changed files with 15 additions and 3 deletions

View File

@@ -1310,15 +1310,16 @@ namespace Volian.Controls.Library
{
string xml = null;
string srchtxt = null;
using (VlnFlexGrid myGrid = new VlnFlexGrid())
Content content = (Content)sender;
using (VlnFlexGrid myGrid = new VlnFlexGrid(content.ContentItems[0]))
{
using (StringReader sr = new StringReader(args.OldGridXml))
{
myGrid.ReadXml(sr);
sr.Close();
}
string roid = myGrid.ROID;
int rodbid = myGrid.RODbId;
string roid = content.ContentRoUsages[0].ROID; //myGrid.ROID;
int rodbid = content.ContentRoUsages[0].RODbID; //myGrid.RODbId;
////Font GridFont = myGrid.Font;
//myGrid.MergedRanges.Clear();
//myGrid.Clear();
@@ -1329,7 +1330,11 @@ namespace Volian.Controls.Library
//myGrid.RODbId = rodbid;
//myGrid.ROID = roid;
//myGrid.IsRoTable = true;
myGrid.Visible = false;
myGrid.ConvertTableROToGrid(args.ROText, rodbid, roid);
myGrid.FixTableCellsHeightWidth();
myGrid.AdjustGridControlSize();
myGrid.Visible = true;
using (StringWriter sw = new StringWriter())
{
myGrid.WriteXml(sw);