Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
25596 | Mar 2,2005 03:15 AM UTC | Mar 2,2005 09:39 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) { if(this.gridDataBoundGrid1.Binder.IsAddNew && !IsRowOk(e.RowIndex)) { e.Cancel = true; } } private bool IsRowOk(int row) { bool ret = true; for(int i = 1; i < this.gridDataBoundGrid1.Model.ColCount; i++) { string s = this.gridDataBoundGrid1[row, i].Text; if( s == null || s.Length == 0) { ret = false; break; } } return ret; }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.