This is a migrated thread and some comments may be shown as answers.

Table - Grouping column cells

0 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bader
Top achievements
Rank 1
Bader asked on 26 Feb 2012, 12:57 PM
Hi,

I'm using the following code in order to group two columns by values.
I have a question regarding this issue: How can merge the grouped cells (Please view the attached image)?

c# code:
static string oldValueStatic = string.Empty;
        static string oldValueStatic2 = string.Empty;
 
        private void Nightly_ItemDataBinding(object sender, EventArgs e)
        {
            oldValueStatic = string.Empty;
            oldValueStatic2 = string.Empty;
        }
 
        public static string CutDuplicates(string data)
        {
 
            if (0 == string.Compare(oldValueStatic, data, true))
            {
                data = string.Empty;
            }
            else
            {
                oldValueStatic = data;
            }
            return data;
        }
 
        public static string CutDuplicates2(string data)
        {
 
            if (0 == string.Compare(oldValueStatic, data, true))
            {
                data = string.Empty;
            }
            else
            {
                oldValueStatic = data;
            }
            return data;
        }

I'm calling the functions as below:
= CutDuplicates(Fields.Env)

It is very appreciated to explain by supplying a step-by-step instructions how to solve the above issue.

Regards,
Bader

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Bader
Top achievements
Rank 1
Share this question
or