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.
Hi Sohail,
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.
sohail653 said: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.
No, the grid creates it's own print job and there is no way to add anything into that job. I still think using some fake summaries and a CreationFilter would be the best way to go.
sohail653 said: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.
I'm actual not very familiar with Silverlight, so it's possible that this is much easier to do in Silverlight. I recommend posting in the Silverlight forum if that's what you intend to use.
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.
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 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.