I am creating a self-referencing Hierarchical Grid View. I checked the sample and it is setting image in CellFormatting event by accessing
GridDataCellElement dataCell = e.CellElement as GridDataCellElement;
...........................................................
dataCell.ImageAlignment = ContentAlignment.MiddleLeft;
dataCell.Image = this.imageList1.Images[2];
dataCell.TextImageRelation = TextImageRelation.ImageBeforeText;
I want to attach image at the time of inserting the rows into the grid. How can I do that?
Another related question, how can I know if a row has child rows (nodes)
GridDataCellElement dataCell = e.CellElement as GridDataCellElement;
...........................................................
dataCell.ImageAlignment = ContentAlignment.MiddleLeft;
dataCell.Image = this.imageList1.Images[2];
dataCell.TextImageRelation = TextImageRelation.ImageBeforeText;
I want to attach image at the time of inserting the rows into the grid. How can I do that?
Another related question, how can I know if a row has child rows (nodes)