Completed
Last Updated: 16 Nov 2015 12:51 by ADMIN
Svetlin
Created on: 01 Feb 2013 01:40
Category: GridView
Type: Bug Report
0
FIX. RadGridView - added child row in hierarchy does not appear in the child view of the expanded parent.
A child row does not appear in the view by using following code snippet:

GridViewRowInfo^ pNewRow = pTemplate->Rows->AddNew();
pNewRow->Cells["ChildNameColumn"]->Value = this->ChildTextBox->Text;
int count = radGridView1->ChildRows->Count;
pNewRow->Cells["ChildAddressColumn"]->Value = count.ToString()

Workaround: add new rows in the following manner:

private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e)
{
    // add child row
    GridViewTemplate^ pTemplate = radGridView1->MasterTemplate->Templates[0];
    GridViewRowInfo^ pNewRow = pTemplate->Rows->NewRow();
    pNewRow->Cells["ChildNameColumn"]->Value = this->ChildTextBox->Text;
    int count = radGridView1->ChildRows->Count;
    pNewRow->Cells["ChildAddressColumn"]->Value = count.ToString();
    pTemplate->Rows->Add(pNewRow);
}
1 comment
ADMIN
Ivan Petrov
Posted on: 12 Nov 2015 07:40
Works from a previous version.