Hi,
I want multi levels of columns in Ultrawingrid like
Level1
level1.1 level1.2
Level 1.1.1 Level 1.1.2 Level 1.1.1 level1.2.1 level1.2 .2
I want three levels of column. How can we achive this using ultrawingrid
If you only want two levels, you can use Groups. Groups allow you to assign columns to a group, so you get two levels of headers.
For three levels, you would have to use RowLayouts and the Group headers would be unbound column where the column.RowLayoutInfo.LabelPosition is set to LabelOnly. So they are essentially dummy columns with no cells, just headers. The easiest way to do this is to set it up in the grid designer.
Thanks for your quick response.
With two level I am able to do, since I am very new to infragistics, I don't how to set all this for three levels. Can you please give me one example.
Thanks and Regards
Rosy
Hi Mr. Arun,
I have to do the same thing bt my columns comes at runtime ie. i have two dates like "start date" & "End Date" and the dates btween these two dates are my column headers. These dates i want to show as follows :
Kindly guide me for dis..
Thanks in advance.
Hello,
Could you please clarify what type of objects are these fields - March, April,1,2,3,Mon,Tue,Thu.
Please do not hesitate to contact us if you need any additional assistance.
Hi Boris,
can u pls rply for it its very urgent for me. The code is somethinh like this.
public void FillGrid(DateTime dt1, DateTime dt2,DataSet dsMain){ DataRow drow; DataTable dtFill = new DataTable(); DataTable dtgrid = new DataTable();
try { dsTemp = dsMain;
TimeSpan ts = dt2 - dt1; int mday = ts.Days;
for (int icount = 0; icount <= mday; icount++) { dtFill.Columns.Add(Convert.ToString(objCommonFunction.ProcGetDateFormat(Convert.ToString(dt1.AddDays(icount)))).Substring(0,5) + Environment.NewLine + Convert.ToString(dt1.AddDays(icount).DayOfWeek).Substring(0, 3), System.Type.GetType("System.String")); }
grdFactorywiseDet.DataSource = dtFill; grdFactorywiseDet.DataBind();
catch (Exception ex) { MessageBox.Show(ex.Message); }}
basically the dates which i am binding are in normal format (dd mm yyyy) which takes more space. so i want to make groups as shown in above snap.
Kindly rply its very urgent..
thnx in advance.
Could you please review the sample attached to this post and see if it meets your requirements.
Please feel free to let me know if I misunderstood you or if you have any other questions.
thnx for ur rply.
In my case i get columns at runtime. so i cannot set the groups at design time.
please provide me some solution for grouping three levels column header similar as shown in above tabular snap. i dont have columns at design time.
the column headers of below snap are to be shown in 3 groups.