Can anyone please explain me how to do following steps
1.how to dispaly records in an ultrawin grid where each row can be expandable or collapsable.
2.how to implement the expanded row must contain an child datagrid,
3.how to display the child datagrid with multiple rows in it.
Also please look at the below UI which is very similar to my requirements that need to display the records in an ultrawingrid with each record having multiple rows in it.
Hello Jim,
I have been looking at this forum thread and in case that you still need assistance you could do the following:
Create an hierarchical dataSource - in my case I am creating a DataSet containing two DataTables, where I am have a relationship between them. Once you have populate your DataSet you could set it a DataSource to your UltraGrid. I have created simple code snippet for you below:
public Form1() { InitializeComponent(); DataTable data = new DataTable(); data.Columns.Add("PhoneNo1", typeof(string)); data.Columns.Add("PhoneNo2", typeof(string)); data.Rows.Add("9491", "949"); data.Rows.Add("9492", "4912"); data.Rows.Add("9493", "9491"); data.Rows.Add("9494", "949111"); data.Rows.Add("9495", "94"); DataTable data2 = new DataTable(); data2.Columns.Add("Str1", typeof(string)); data2.Columns.Add("Str2", typeof(string)); data2.Rows.Add("9491", "94"); data2.Rows.Add("9491", "2222"); data2.Rows.Add("9491", "22"); data2.Rows.Add("9492", "112"); data2.Rows.Add("9492", "9491"); data2.Rows.Add("9492", "9122"); data2.Rows.Add("9492", "92"); data2.Rows.Add("9493", "94"); data2.Rows.Add("9493", "12"); data2.Rows.Add("9494", "4213"); data2.Rows.Add("9494", "1321"); data2.Rows.Add("9495", "123"); data2.Rows.Add("9495", "11"); DataSet ds = new DataSet(); ds.Tables.Add(data); ds.Tables.Add(data2); ds.Relations.Add(data.Columns[0], data2.Columns[0]); ultraGrid1.DataSource = ds; }
If you have any other questions please feel free to contact us.