cancel
Showing results for 
Search instead for 
Did you mean: 

Folders Within Folder in c#.net

Former Member
0 Kudos

Hi to all..,

I had created a folder ..,within that folder i need to place two more folders ..,After placing those subFolders all those folders are formed in the same row.how to solve this problem.

--Arjun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Arjun,

you group all your main folder as one group

and then sub folder as one group

After creating two folders(Complete the creation of twwo folders and get refence to both sub folders)

you use oSubFolder1.GroupWith("SubFolder2")

oSubFolder2.GroupWith("SubFolder1")

Hope this helps you

Regards

Vishnu

Former Member
0 Kudos

HI Vishnu..,

Thank u for ur reply..,in the following code im trying to set subfolders for "Fol1"..

for(i=1;i<=3;i++)

{

oitem = oform.Items.Add ("Fol"+i,SAPbouiCOM.BoFormItemTypes.it_FOLDER );

oitem.Left = 40+(i-1)*100;

oitem.Height = 25;

oitem.Width = 40;

oitem.Top = 50;

ofolder = ((SAPbouiCOM.Folder)(oitem.Specific ));

ofolder.Caption ="Folder"+i;

ofolder.DataBind.SetBound (true,"","folds");

if(i==1)

{

ofolder.Select ();

}

else

{

ofolder.GroupWith ("Fol"+((int)(i-1)).ToString());

}

Answers (1)

Answers (1)

Former Member
0 Kudos

You have to set coordinates of folders (top, left, ..) and check, if the subfolders are grouped each other and not to primary folder item.