Hi, I want to change the GroupAreaText in the code behind similar like grid.GroupingSettings.EmptyGroupAreaText = "123".
How can I do this? I use the "BoundDataField" object and when I group a column I want to display the "Header.Text" value inside the "GroupAreaText"!
BR
Hello,
Our engineering team reviewed this issue and stated it as a correct behavior of the grid. Actually when you add columns in code behind you should add them to the WebHierarchicalDataGrid, rather than the WHDG.GridView:
BoundDataField col1 = new BoundDataField(); col1.DataFieldName = "ClaimNumber"; col1.Key = "ClaimNumber"; col1.Header.Text = "Claim Number"; this.WebHierarchicalDataGrid1.GridView.Columns.Add(col1); this.WebHierarchicalDataGrid1.Columns.Add(col1);
When the text for the element is set the code look for the columns collection of WebHierarchicalDataGrid1. However since columns were added to WebHierarchicalDataGrid1.GridView the first was empty and the Header.Text of the columns was not available, which was causing this issue.
Please correct this in your code and let me know if you have any further questions on the matter, I will be glad to help.
Hi,
I have investigated this issue, and I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 188060. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I will leave this case open and update you with any new information after the review. You can also continue to send updates to this case at any time.
You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Thank you for the screen, I have noticed the first time you attached it. I am currently working on this to see why this happens. I will keep you posted with my findings.
Hi, here is my result:
Hi, her is my result: