Home Forums WinForms controls Xceed Grid for WinForms How do i add unbounded row such as ValueRow into my footer

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14229 |

    Hi,

    I am trying to add unbounded row such as ValueRow into my footer, but some how I cannot access the cell of my value row.

    Please advice.

    Code Snippet:

    ValueRow r = new ValueRow();
    r.Cells[0].Value = “test”; //[0] is string
    grid.FooterRows.Add(r);
    //this code breaks;

    ValueRow r = new ValueRow();
    ValueCell c = new ValueCell();
    c.Value = “test”;
    r.Cells.Add(c);
    grid.FooterRows.Add(r);
    //this code also breaks;

    FYI: i tried Textrow and it works but thats not what i want.

    Can anyone tell me how by using ValueRow or others?

    Thanks in Advance.
    JK

    Imported from legacy forums. Posted by jkhuraijam (had 1871 views)

    User (Old forums)
    Member
    Post count: 23064

    I got it guys, thanks anyway

    here is how it works,

    grid.FooterRows.Add(new ValueRow());
    ValueRow valueRow = ( ValueRow )grid.FooterRows[ 0 ];
    valueRow.Cells[ 0 ].Value = “First column text”;
    valueRow.Cells[ 1 ].Value = “Second column text”;

    Imported from legacy forums. Posted by jkhuraijam (had 2946 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.