TrueDBGrid versions 20183 vs 20163

Posted by: grapecity on 12 February 2019, 2:42 pm EST

    • Post Options:
    • Link

    Posted 12 February 2019, 2:42 pm EST - Updated 3 October 2022, 4:19 pm EST

    Hello,

    Found this strange behavior of the latest version of TrueDBGrid 20183. The AddNew row, marked by an asterisk in the record selector column, disappears when adding the first new record. Unlike in the version 20163, this behavior does not exist.

    Attached gifs show the difference between the two. I can’t attach the source code right now but the two attached gifs show this behavior. They bought use the same code, I only change the dll.

    Thanks

    Ricky

  • Posted 12 February 2019, 2:48 pm EST

    NB:

    The first gif above, shows the right behavior.

    The 2nd gif above, strangely has no Add New row after adding one record. This prevents the user to continue adding more records.

    Thanks.

  • Posted 13 February 2019, 3:54 pm EST

    Hi Ricky,

    I couldn’t replicate the behavior you’ve shown. Can you please see what am I missing?

    You can modify the attached sample, and revert it back.

    Thanks,

    Jitender

    TrueDb_AddNewRow.zip

  • Posted 17 February 2019, 10:22 pm EST - Updated 3 October 2022, 4:19 pm EST

    Hi Jitender,

    Thank you for your quick reply. Here’s the revised sample. It happens when a master-detail is present. I added 2nd grid and revised the Form1_Load() as follows to present the data in a master-detail view:

    private void Form1_Load(object sender, EventArgs e)

    {

    //c1TrueDBGrid1.DataSource = GetDataTable();

    DataSet ds = new DataSet();

    DataTable dt1 = GetDataTable();

    dt1.TableName = “Header”;

    DataTable dt2 = GetDataTable();

    dt2.TableName = “Detail”;

    ds.Tables.Add(dt1);

    ds.Tables.Add(dt2);

    //

    DataColumn parentDC= ds.Tables[0].Columns[“SeqNo”];

    DataColumn childDC = ds.Tables[1].Columns[“SeqNo”];

            c1TrueDBGrid1.DataSource = dt1.DefaultView ;
            c1TrueDBGrid1.AllowAddNew = true;
            //
            
            c1TrueDBGrid2.DataSource = dt2.DefaultView;
            c1TrueDBGrid2.AllowAddNew = true;
    
            //
            ds.Relations.Add("Detail", parentDC, childDC);
            //
            c1TrueDBGrid1.SetDataBinding(ds, "Header", true);
            c1TrueDBGrid2.SetDataBinding(ds, "Header.Detail", true);
    
            //Now even if there's no unbound column, the issue still exists.
            //ecAddUnboundColumn(c1TrueDBGrid2, "RowNo", 0); 
            //ecAddUnboundColumn(c1TrueDBGrid1, "RowNo", 0);
        }
    

    Thanks

    Ricky

  • Posted 18 February 2019, 7:54 pm EST

    Hi Ricky,

    Thank you for sharing the modified code. Making the grid to show Master-Detail view in this way, I am too able to observe the issue at my end and to me it looks like a bug. Hence I have forwarded it to the concerned team for fix [ID:367559].

    Thanks,

    Ruchir

  • Posted 9 April 2019, 4:15 pm EST

    Hi,

    The issue is fixed with the latest release version. You can either update using C1Live or manually download the assemblies from here:

    http://prerelease.componentone.com/dotnet40/c1winforms/2019-t1/C1WinForms.4_4.0.20191.359.zip

    Thanks,

    Pragati

  • Posted 15 April 2019, 12:38 pm EST

    Hello,

    Thank you for the update. The link provided does not work.

    Thanks again.

    Ricky

  • Posted 15 April 2019, 2:52 pm EST

  • Posted 15 April 2019, 9:56 pm EST

    Hi Paragti,

    Thank you very much!!!

    Ricky

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels