The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Cols.InsertRange is failing (not inserting a column) when being called from CurrentCellAcceptedChanges and/or CurrentCellActivated. Is this by design? I need to be able to insert column(s) based on what the user enters. Even the following example fails (gridControl1 has 10 rows, 10 cols).
private void gridControl1_CurrentCellAcceptedChanges(object sender, System.ComponentModel.CancelEventArgs e)
{
int intRow = this.gridControl1.CurrentCell.RowIndex;
this.gridControl1.Cols.InsertRange(6, 1);
this.gridControl1.Refresh();
}
ADAdministrator Syncfusion Team May 12, 2004 04:49 PM UTC
Your sample code seems to work OK for me in version 2.0.5.1. Do I need todo something different than just changing some cell and then tabbing or clicking out of teh changed cell to see the problem?
WindowsApplication1_8338.zip
GWGreg WrightMay 12, 2004 04:52 PM UTC
>Your sample code seems to work OK for me in version 2.0.5.1. Do I need todo something different than just changing some cell and then tabbing or clicking out of teh changed cell to see the problem?
>
>WindowsApplication1_8338.zip
>
>
I''m using 1.6.1, and it is happening. v2 is still in beta, isn''t it?
ADAdministrator Syncfusion Team May 12, 2004 04:54 PM UTC
No, 2.0 has been in release for about 4 weeks now.
GWGreg WrightMay 12, 2004 04:57 PM UTC
>No, 2.0 has been in release for about 4 weeks now.
Would it be possible to look at 1.6.1 or 1.6.8 for this issue? I can''t afford to switch versions at this time.
GWGreg WrightMay 12, 2004 05:02 PM UTC
Sorry, I didn''t answer your question. I''m just changing the value in a cell and tabbing.
ADAdministrator Syncfusion Team May 12, 2004 05:07 PM UTC
Do you see the problem in the sample I posted? If you get any syntax error because the project was done with 2.0, just comment out the offending line.
GWGreg WrightMay 12, 2004 05:18 PM UTC
>Do you see the problem in the sample I posted? If you get any syntax error because the project was done with 2.0, just comment out the offending line.
Yes. It doesn''t add a column, and the ColCount doesn''t change.
ADAdministrator Syncfusion Team May 12, 2004 06:57 PM UTC
Try locking the currentcell (requires 1.6.1.8) while you insert the column.
this.gridControl1.CurrentCell.Lock();
int intRow = this.gridControl1.CurrentCell.RowIndex;
this.gridControl1.Cols.InsertRange(6, 1);
this.gridControl1.CurrentCell.Unlock();
this.gridControl1.Refresh();