or
| private void uxTourGrid_CellEndEdit(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) | |
| { | |
| if (e.ColumnIndex == 0 && uxTourGrid.Columns[0].SortOrder != RadSortOrder.None) | |
| { | |
| RadSortOrder sort = uxTourGrid.Columns[0].SortOrder; | |
| uxTourGrid.Columns[0].SortOrder = RadSortOrder.None; | |
| uxTourGrid.Columns[0].SortOrder = sort; | |
| } | |
| } | |



//Since workListRadGridView.ColumnChooser's Parent or MdiParent property is not set,//setting its StartPosition to FormStartPosition.CenterParent doesn't work.//As a workaround, get parent form's desktop location and offset it 50 pixels from//both X and Y co-ordinates to keep the column chooser within the bounds of the application.//Parent form desktop location.//DesktopLocation property is idle choice because of the following remark in its documentation on MSDN://"If your application is running on a multimonitor system, the coordinates of the form are the coordinates for the combined desktop."//Telerik's documentation for ColumnChooser also has the mention for DesktopLocation property.//(though not in the context of "setting the location")if (this.ParentForm != null && this.ParentForm.DesktopLocation != null){ Point columnChooserDesktopLocation = new Point(this.ParentForm.DesktopLocation.X, this.ParentForm.DesktopLocation.Y); columnChooserDesktopLocation.Offset(50, 50); radGridView.ColumnChooser.DesktopLocation = columnChooserDesktopLocation;}