Object reference not set to an instance of an object.
at Telerik.WinControls.UI.RadGridView.ValidateColumnChange(GridViewColumn column)
at Telerik.WinControls.UI.GridViewTemplate.SetCurrentColumn(GridViewColumn column, Boolean update, Boolean shift, Boolean control)
at Telerik.WinControls.UI.BaseGridBehavior.SetCurrentPosition(GridRowElement row, GridCellElement cell)
at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownRight(MouseEventArgs e)
at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(MouseEventArgs e)
at Telerik.WinControls.UI.RadGridView.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
| Public Shared Sub AddScreenTip(ByVal button As RadButton, ByVal headerText As String, ByVal bodyText As String) |
| If Not button.ButtonElement.ScreenTip Is Nothing Then |
| button.ButtonElement.ScreenTip.Items.Clear() |
| End If |
| Dim Tip As New RadOffice2007ScreenTipElement() |
| Tip.CaptionLabel.Text = headerText |
| Tip.MainTextLabel.Text = bodyText |
| button.ButtonElement.ScreenTip = Tip |
| End Sub |
private void StateRadGridView1_CellValidating(object sender, CellValidatingEventArgs e)
{
GridViewDataColumn column = e.Column as GridViewDataColumn;
if (e.Row is GridViewDataRowInfo && column != null && column.FieldName == "MntStaName")
{
if (string.IsNullOrEmpty((string)e.Value))
{
MessageBox.Show("Description cannot be blank.", "JMS Error Message", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}
I have split my forms and my controls in several subprojects of my solution project.
It would be great if you could extend the project upgrade utility so that it can handle solution files and upgrade all projects in the solution project at once.
Regards,
Ramius
![]() |
| |||