private void radGVMinMembers_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
if(e.ColumnIndex == 3)
{
RadDateTimeEditor rdt = new RadDateTimeEditor();
rdt.NullText =
"";
rdt.NullValue =
new DateTime(2000, 10, 10);
radGVMinMembers.CurrentColumn.InitializeEditor(rdt);
}
}
private
void radGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
if (e.ContextMenuProvider is GridHeaderCellElement)
{
e.ContextMenu =
this.columnContextMenu;
}
else if(e.ContextMenuProvider is GridDataRowElement )
{
GridDataRowElement cell = (GridDataRowElement)e.ContextMenuProvider;
e.ContextMenu =
this.contextMenu;
}
}
I want to open a context menu when user click any where on a prticular Data row.
I also wants the value of all the column in that row.
Let me know which class will be suitable as a context menu provider so that i get all the data in that row and also be able to open the contextMenu..
Povide an example if possible?
Note :- The code in the else-if part is not working properly.