I would like present a grid that has primary divisions by month, where each month has four separate columns under it.
Can I set up something like this using WebDataGrid?
Hello FireStorm12 ,
Thank you for posting in our forums.
For the purpose I recommend you using Multi - Column headers.
The feature is available in the new release 11.2
Please refer to the online samples
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Display/Multi-Column-Headers/Default.aspx?cn=data-grid&sid=c97530da-4391-4912-9d8f-ce860d1860fe
and documentation
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2?page=WebDataGird_Multi_Column_Headers.html
regarding this.
Let me know if you need further assistance.
I also tried using all BoundDataFields. Same result.
I am doing this dynamically in the C# code-behind on the server. I am adding both the grouped columns and the columns in the code, not the HTML.
Any suggestions?
Hello FireStorm12,
Thank you for the follow-up.
Can you please clarify what do you mean by "inserting the columns after the grid has already been displayed"?
Are you adding them in a later phase of the lifecycle , or at a button click handler, etc?
Can you modify the sample which I have uploaded in order to replicate the issue?
Hope hearing from you.
I am inserting the columns in response to a button click. My code is attached.
Hello FireStorm,
Thank you for the sample and the clarification.
There is a development issue created already regarding this.
Issue 96233: Adding columns dynamically doesn't work when group field is present
I will contact you through your support ticket.
Is this something that you expect to be fixed within the next week or so? Or do I need to find another way to do this? (I need to get my application released very soon.)
Thank you for the follow up.
Currently you can add the group fields before data binding the first time like in the sample:
Currently the issue is in development and if you want it fixed the next week I should request untested build for this.
As temporary solution you can try adding the group fields in a earlier phase of the page lifecycle during post back.
I tried at PreInit and they are added but on the second post back.
I will update you with more info regarding the dev issue through the case