Home › Forums › WinForms controls › Xceed Grid for WinForms › How do i add unbounded row such as ValueRow into my footer
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.
ValueRow r = new ValueRow(); r.Cells.Value = “test”; // 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)
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)