Hi,
How can i add an extra row or two after the summaries row in the grid which is bounded to a data-source. The purpose is to print some text on that newly added rows.
Regards,
Sohail Kazmi
There's no built-in way to add rows to the grid after the summary row. But you can have multiple levels of summaries. So if you just need some extra space to put some text, you could add some extra summaries to the same column and they will show up stacked on top of each other.
You could control the text of these 'placeholder' summaries either by making them Custom summaries and using an ICustomSummaryCalculator or by using a CreationFilter to manipulate the UIElements. It depends what you need to display and how much room you need to display it.
Hi Mike,
Thanks for your prompt replies, which are always very helpful. Back to my question, i actually i want to print some text like the following, for signatures / counter signs.
------------------------ ----------------------------- -----------------------------
Accountant GM Director
Kindly with the solution also provide some helpful code for the same.
Sohail Kazmi.
Thanks, actually the screen shot from FarPoint Spread is of print-preview, all i want is just to print those lines of text at print-preview and print time, it doesn't matter if they doesn't show on the grid at form level, but at print-preview and print time they should get displayed just after summaries. If i add those at footer than they get displayed at the bottom of the page and all the space after summaries will be blank, that what i doesn't want.
Hi Sohail,
The answer is still the same. The grid creates it's own print job, so there is no way to insert anything into the printout that isn't already in the grid. So you would still have to use a CreationFilter.
You would have to add the 'fake' summaries into the print layout, so that it does not affect the on-screen grid and then have the CreationFilter apply only to the print layout.
That's really sad to know, and i thing Infragistics team should do some think for it.
As you said
"It also looks like you need quite a large space for this. That might cause a problem because each summary you add will cause a small performance hit."
Most of the time the grid has more than 2 or 3 or even more pages at print time so what would be affect on the performance ?, and isn't that involve more complexity for the developer ?, to hear that in "Yes", that would be really even more sad.
I don't know that i should mention this, but to seek guidance from you i m, that a part from this, programming in .Net, writing more and more code, so whats the difference between .Net and VB6, I think i should switch back to VB6 and or to Delphi.
You are trying to do something here that the grid is simply not designed to do. Most of the time in such a case, the answer would be something like "No, you cannot do that."
But because of the Infragistics Presentation Layer framework that allows you to modify the UIElements of the controls directly, it is actually possible to modify the grid to do what you want. So rather than simply telling you it's impossible, I am offering a potential solution.
Yes, this solution is difficult and there are some caveats, but you are asking for functionality that is very uncommon and simply isn't built-in to the grid.
Whether you decide to use VB6 or NetAdvantage is up to you and your requirements for your application.
Ok, is there a way that i can print another dummy grid for the text just after the data grid, or i make labels and put the text on those labels and then print those labels just after the data grid, at form level i make those hide or send to back. Kindly suggest me and if possible provide some example / code for the same.
As far NetAdvantage tools are concern, actually i got my interest for .Net development, after knowing those superb tools you people have provided to make developers life easy, and my program is to develop applications using Silverlight.
Hi Dave,
Thanks for your suggestion, and kindly pay my best regards to Mike for those helpful replies.
Hello Sohail,
From looking at what you're trying to do, I believe our Reporting product would be a better solution. I am not all that familiar with that product, though, so I would suggest posting a question in the NetAdvantage Reporting (http://forums.infragistics.com/forums/default.aspx?GroupID=78) forum.
With reference to my previous post i asked "actually i m trying to use the grid as a report source, and i think i m wrong, am i ?, instead i should use reporting tool for that. Kindly guide me."
Actually the generated print with FarPoint, I treat that as a report, the same i m trying with the UltraGrid, am i wrong in my thinking or should i use a reporting tool for that ?, that's what i want to know.
If you are interesting in the Reporting tools, I recommend that you post your question in the reporting forum here:
NetAdvantage Reporting - Infragistics Community
I'm not that familiar with those tools. :)
Hi Mike,With reference to your reply dated 12-09-2011 you mentioned "You are trying to do something here that the grid is simply not designed to do.", actually i m trying to use the grid as a report source, and i think i m wrong, am i ?, instead i should use reporting tool for that. Kindly guide me.