简体   繁体   中英

Clearing Telerik RadSpreadSheet for WPF Control

I am using a Telerik RadSpreadSheet in a WPF application to display different pieces of data. Between each set of data I clear the spreadsheet. The only way I've found to do this is clearing each cell. This works, but it feels wrong. Is there a better solution?

for (int x = 0; x < rowCount; x++) {
  for (int y = 0; y < columnCount; y++) {
    radSpreadsheet.ActiveWorksheet.Cells[x, y].SetValue("");
  }
}

尝试这个:

radSpreadsheet.ActiveWorksheet.Cells[0, 0, rowCount - 1, columnCount - 1]?.ClearValue();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM