or

| //this.btnNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
| this.btnNew.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(119)))), ((int)(((byte)(169))))); |
| this.btnNew.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnNuevo.BackgroundImage"))); |
| //this.btnNew.FlatAppearance.BorderColor = System.Drawing.Color.White; |
| //this.btnNew.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
| this.btnNew.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); |
| this.btnNew.ForeColor = System.Drawing.Color.White; |
| this.btnNew.ImageAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
| this.btnNew.ImeMode = System.Windows.Forms.ImeMode.NoControl; |
| this.btnNew.Location = new System.Drawing.Point(512, 417); |
| this.btnNew.Margin = new System.Windows.Forms.Padding(0); |
| this.btnNew.Name = "btnNuevo"; |
| this.btnNew.Size = new System.Drawing.Size(90, 35); |
| this.btnNew.TabIndex = 42; |
| this.btnNew.Text = "Nuevo"; |
| this.btnNew.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; |
| //this.btnNew.UseVisualStyleBackColor = false; |

private void radGridView1_RowValidating(object sender, RowValidatingEventArgs e) { var row = e.Row as GridViewDataRowInfo; if (row != null) { var value = row.Cells["cboUnit"].Value.ToString(); if (string.IsNullOrEmpty(value)) { e.Cancel = true; row.ErrorText = "Unit Number is a required field"; } else { row.ErrorText = string.Empty; } }}
Telerik.WinControls.UI.RadPageViewPage page1= new Telerik.WinControls.UI.RadPageViewPage();
page1.Text = "Search";
RadPageView1.Pages.Add(page1);


grid.Rows.OfType<GridViewDataRowInfo>().Count(x => Convert.ToDouble(x.Cells["columnName"].Value) <= 0);