DealGridControl.GroupedColumns.Clear();
DealGridControl.ShowFilters
= false;
DealGridControl.SortColumns.Clear();
Hi
Will,
We
have analyzed your requirement and we have achieve your requirement by using
the following code snippet.
Code Snippet[C#]:
private void Order_Click(object sender, RoutedEventArgs e) { foreach (KeyValuePair<int,string> it in Vcolorder) { int fromindex = this.SyncGrid.VisibleColumns.IndexOf(this.SyncGrid.VisibleColumns[it.Value]); this.SyncGrid.VisibleColumns.Move(fromindex,it.Key); } } |
We
have prepared a sample based on this and it can be download from the following
location.
Sample Location: GridDataControl_VisibleColumn.zip
Note:
·
Run
the sample .
·
Re
arrange the column by Column drag and drop.
·
Click
the button Arrange order to rearrange the visiblecolumn
Please
let us know if you have any questions.
Regards,
Raja
sekar.G
Sorry
for the delay in getting back to you.
Could
you please create new incident for feature request through Direct Trac system and
we will update the status of this through incident.
Direct Trac Link
: https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
And
also could you please share the following details with us in the Direct Trac incident .That would be very
helpful for us to further analysis to provide the solution for the issue “Null
Exception occur while using VisibleColumns collection”
·
Could you please share your simple sample to replicate the
issue.
· In which scenorio do you clear the filters from the VisibleColumn.
Please
let us know If you have any questions.
Regards,
Raja
sekar.G