I have a grid with about 30 items. When I expand out Parent Row #1 I am firing the RowExpandedEvent and getting the child row header text from the database, however when I expand it out the header texts never change. Then when I expand out Parent Row #2 the event fires but the header text is the text that should have been in Parent Row #1. When I debug it I am getting the correct values but they are not displayed correctly in the grid. Infragstics support says it may be an issue with the grid but it takes forever to go through their development to verify this so at this point I am looking for any suggestions or work arounds as I need this thing going ASAP!
Thanks for any help you may be able to provide.
Abhijeet,
For us to assist you it is important to provide more details about how the solution isn't working as well as what version of the toolset you are using.
Above solution not working.
Thanks everyone who helped. Valerie's answer worked.
Hello,
In the RowExpanded event you can get the child grid of the row using the RowIslands property. Once you have the child Grid you can set the header text of the column:
Select Case i
Case 2
e.Row.RowIslands(0).Columns(2).Header.Text = "Fuller Emp"
'whdg1.Bands(0).Columns(2).Header.Text = "Fuller Emp"
Case 12
e.Row.RowIslands(0).Columns(2).Header.Text = "Test Person Emp"
'whdg1.Bands(0).Columns(2).Header.Text = "Test Person Emp"
Case 13
e.Row.RowIslands(0).Columns(2).Header.Text = "Joe Smith Emp"
'whdg1.Bands(0).Columns(3).Header.Text = "Joe Smith Emp"
End Select
Please let me know if you have any questions.
Valerie
Hi Dave -
Please download the sample here: http://www.wins-wellness.com/testgrid.zip
I couldnt upload as the file size was too big.
If I select the first row, Andrew Fuller, the first name on the child rows should change to "Fuller Emp" however they do not. The header stays as "First"
If I select Test Person the first name header on the child rows should change to "Test Person Emp" however it changes to "Fuller Emp"
Lastly, when I select Joe Smith the first name header on the child rows should change to "Jow Smith Emp" however it changes to "Test Person Emp"
Thanks