How can you (programmatically) add a label to an Excel outlining group? - c#

I'm looking for a means of adding a label to an Excel outlining group.
By this I mean: you can group rows or columns in Excel. You are left with a '+' or '-' icon allowing you to expand or contract this group. The problem is when the group is contracted, there is no way of knowing what is in the group. I am looking for a way of adding a label to this group so users know what expanding it will reveal.

Related

UWP DataGrid - Individual Cell Based Selection?

By default, when selecting values in a UWP DataGrid the entire row is selected/highlighted. On top of this, you are unable to click and drag to select multiple cells. Pressing CTRL+LClick or Shift+LClick will add rows to the selection, but even this does not allow for multiple cells to be selected.
Is there a way to allow the user to select individual cells? Furthermore, is there a way to allow for a click and drag to select multiple cells within the created rectangle?
UWP DataGrid - Individual Cell Based Selection?
I have to say currently there is no such SelectionUnit api that use to select multiple individual cell,
UWP DataGrid selection model only contains extended and single. It could only use to select entire row. if you want to this feature, I'd suggest you submit a feedback/feature request about this API/feature in the Feedback Hub. You could find the Feedback Hub in the Start Menu. Please select Developer Platform->API Feedback as the category when you submit your request. The related team will check the request.

How to toggle (Expand/Collapse) group data in rdlc

In my rdlc report,I want to show my group data just like this example--
When I click (+) sign group data under the name will expand and When I click (-) sign group data under the name will collapse.I find resources for SSRS report, but nothing useful for rdlc report in recent times.So I followed in my rdlc according to those SSRC report resources if i can get some result.I followed this two specially--
SQL Server Reporting Services(SSRS)
Expand or Collapse All Grouped Items on SSRS Report
I took a table.take "GROUP2" as row details.add group parent "GROUP1" for "GROUP2".Like---
I select group properties for "GROUP2" like--
then i set visibility hide for "GROUP2" , checked "display can be toggled by this group item" and select "GROUP1" as item.like--
It gives me report like this--
there is "GROUP1" item visible, "GROUP2" is hidden but no (+) or (-) sign or button to expand or collapse group data.
Any one have any idea,What i am missing? or how can i do this in rdlc report like the top example of this question and also i want to set button for "Expand All" and "Collapse All" for this report.
EDIT: I am using asp.net mvc, web api-2 controller.I am tring to get report in pdf format.
First you need to select your column/row group and select group properties.
And then select the grouping item from your DataSource
There you go:
Before expanding of group
After expanding of group
First select the table cell showing [GROUP1], and in the Text Box Properties note the Name. This is not necessarily GROUP1, it could well be Textbox10 etc.
Then in the Text Box Properties for the table cell showing [GROUP2], select that Text Box name below "Display can be toggled by this report item:".
BTW you are likely wasting your time trying to use the expand/collapse functionality in SSRS. It is generally considered flaky and unreliable, and does not scale.
PDF format does not support toggling.
Ref:
https://msdn.microsoft.com/en-us/library/dd255288.aspx
(section titled: Toggle items within a report)
"PDF - The report server exports the current show or hide state of the report to PDF. Interactive toggling is not supported"
#MohammadSadiqurRahman Not sure if you got this problem solved but this is something I do that I hope may help you out.
You will need to make sure that your row groupings have been applied correctly. In the example you gave at the top of your post the row group parent would have been set to account type. You would need to make sure this is done for your 'GROUP1'.
Once you have done this set the row visibility for your collapsed row to 'Hide'. Now check the checkbox 'Display can be toggled by this report item' and set the report item to the cell name for the grouped account types.
Personally I attach it to a new label outside of the tablix which will allow for the entire table to expand/collapse with one click. Just depends on how you want it to work.
I hope this helps you out.

Change values displayed in Crystal Reports Group Tree

Is there a way to configure or change the values displayed in the Group Tree displayed on the left in the crystal report viewer?
I ask because in the report I am grouping id numbers, but I display the names associated with the id. I want to display this name in the group tree as well.
Right click group header or footer in gutter
Select 'Ghange Group...'
Click 'Options' tab
Enable 'Customize Group Name Field'; choose an existing field or build a conditional formula
First of all create the Group
Select the Field on which you want the group
Click 'Options' tab check the Keep Group together and Repeat Group Header on each Page
Select 'change Group...'
Click 'Options' tab
Enable 'Customize Group Name Field'; choose an existing field or
build a conditional formula

Grouping by a field

I have a report where I need to group the items by PaymentMethod and then display a total below each group. I am right-clicking on the detail row and selecting Add group > Adjacent Below and then choosing the group by of PaymentMethod.
You can see that the top picture has a line that shows grouping the total row with the detail row, which is what I want. The picture at the bottom is what I am currently getting.
You are using the wrong Add Group option. You should select Add Group -> Child Group.

Selecting Word-Parts in C#

While collecting some training data for NLP, I discovered that it is impossible to select parts of 2 adjacent words in a RichTextBox.
For example: you can not select "lect Me" from "Select Me" in a RichTextBox using mouse..!!
However it can be done using SHIFT key
Is there a property to be able to select parts of adjacent words not the whole words? That would make it easy for a human annotator...
Thanks
RichTextBox has a property AutoWordSelection. When you set it to false, you get what you need.
Most probably, you will need to do it programmatically - for some reason changing it to false in Properties Tab did not help.

Categories