Hi Vivek,
1. Can you please tell how can I add a checkbox column dynamically on click of one of the menu options to the grid control?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
In your contextMenu click evebt, You can try setting the properties by accessing the styleInfo properties through Model and set the CellType,CellValueType and CheckboxOptions properties to see if that helps.
grid.Model.ColCount += 1;// Add the extra column to grid.
grid.Refresh();
//set the new added colum to "checkBox";
grid.Model.Colstyles[ grid.ColCount].CellType = "CheckBox"
grid.Model.Colstyles[ grid.ColCount].CellValueType = typeof(bool);
grid.Model.Colstyles[ grid.ColCount].CheckBoxOptions = new Syncfusion.Windows.Forms.Grid.GridCheckBoxCellInfo(true.ToString(), false.ToString(), "", true);
You can get the value of the checkbox cell using the below code:
object obj = grid.Model[ rowindex, checkBoxcolumnIndex].CellValue;
2. How can I perform sorting of only the selected values in the grid control? For example I have 10 rows in the grid Control, I select rows 3,4,5,6 and from the context menu click 'Sort'. On click of sort only the selected values should get sorted and not the other ones.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Here is a minimal sample that shows you "How to freeze the rows on sorting in a simple gridcontrol?".
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=57901Best regards,
Haneef