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.
What do I have to do to make font size changes take effect?
Seems the size remains unchanged no matter if I change it at design time or at run time.
I tried this:
Me.RadGridView1.Font = New System.Drawing.Font("Arial", 3.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Compare the amount of data shown on a MS ListView control to the RadGridView control.
Also, any way to speed up loading of data. Takes about 5 times as long than loading a ListView in VB6 with the same data.
With RadGridView1
.GridElement.BeginUpdate()
Dim command As OleDbCommand
command = New OleDbCommand("SELECT * FROM FinalSettings")
command.Connection = New OleDbConnection(My.Settings.WorkSpaceMgrConnectionString)
command.Connection.Open()
.MasterGridViewTemplate.LoadFrom(command.ExecuteReader())
command.Connection.Close()
.GridElement.EndUpdate()
End With
Finn