Hello everybody,
I am learning C# in the software specialist course. I want to get datas from RadGridView and export to Excel file. I managed that get datas from RadGridView like this:
private bool Save_As_Excel_Format(){ if (Personal.Id <= 0) return true; foreach (var gridViewRowInfo in GetAllRows(rgv.MasterTemplate)) { var dataRow = (GridViewDataRowInfo) gridViewRowInfo; foreach (GridViewCellInfo cell in dataRow.Cells) { MessageBox.Show(cell.Value.ToString()); }} return true;}public List<GridViewRowInfo> GetAllRows(GridViewTemplate template){ var allRows = new List<GridViewRowInfo>(); allRows.AddRange(template.Rows); foreach (var childTemplate in template.Templates) { var childRows = this.GetAllRows(childTemplate); allRows.AddRange(childRows); } return allRows;}
But I do not know how I export to Excel with using NPOI library.
