Home Forums WinForms controls Xceed Grid for WinForms Columns insertionrow reset? Reply To: Columns insertionrow reset?

Xceed Support
Member
Post count: 5658

When you call gridcontrol1.clear(), it is normal that all the settings are lost. However, instead of calling gridcontrol1.clear(), you could clear the datarows and the columns. That way, a lot of settings would persist.

e.g.,
<code>
//gridcontrol1.clear()
gridControl1.DataRows.Clear();
gridControl1.Columns.Clear();
</code>

Imported from legacy forums. Posted by CharlesB (had 3041 views)