Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
6273 | Aug 7,2003 02:22 AM UTC | Aug 7,2003 06:31 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; //restrict col 2 to numbers if(cc.ColIndex == 2 && !char.IsDigit(e.KeyChar) && e.KeyChar != ’.’ && && e.KeyChar != ’-’) e.Handled = true; //ignore it }
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.