Rick,
>I would like to display the "OakLeaf.MM.Main.Windows.Forms.mmDataGrid" with an initial sort column selected. Could anyone please tell me how to do this. I know it can be done because it is done in the mmpicker control.
You can bind the grid to a DataView and sort the DataView. Check out the MM .NET Dev Guide topic "Working with DataViews". If you look at the source code for mmPickListSearch, you'll see the "magic" code that sets the Sort property of the Default data view:
if (pickListParams.GridDefaultSortColumn != null &&
!mmString.Empty(pickListParams.GridDefaultSortColumn.BindingSourceMember))
{
dsResultSet.Tables[0].DefaultView.Sort =
pickListParams.GridDefaultSortColumn.BindingSourceMember + " ASC";
}
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com