To insert Validation in DataGridView
-
hi! In windows application, i am using datagridview to insert value into database. But i want put some validation in certain column. but i couldn't.
eg.: i have two columns namely,
Description and Cost. I want to insert only capital letters in Description column and only numbers in cost column.plz guide me an idea. i will appreciate for it. thanx and regards
-
hi! In windows application, i am using datagridview to insert value into database. But i want put some validation in certain column. but i couldn't.
eg.: i have two columns namely,
Description and Cost. I want to insert only capital letters in Description column and only numbers in cost column.plz guide me an idea. i will appreciate for it. thanx and regards
set character casing toupper
-
set character casing toupper
-
bind it to textbox column and use text box character casing property
-
bind it to textbox column and use text box character casing property
thanx monu! one more question i want to ask. i use menustrip and this contain two sub menu. my query is when i click first sub menu , the DataGridView will open and some character are displayed in first column.
e.g.: menustrip contain Course and subject. when i click course link the DataGridView will open and "crse" are shown in first column of datagridview. Same condition apply with "Subject".
can u give some idea. again thanx
-
thanx monu! one more question i want to ask. i use menustrip and this contain two sub menu. my query is when i click first sub menu , the DataGridView will open and some character are displayed in first column.
e.g.: menustrip contain Course and subject. when i click course link the DataGridView will open and "crse" are shown in first column of datagridview. Same condition apply with "Subject".
can u give some idea. again thanx
are u fetching data from database or what. if that is the case you can use sql query according to the criteria and bind them with gridview
-
are u fetching data from database or what. if that is the case you can use sql query according to the criteria and bind them with gridview
-
no, actually i use this on insert command. so, thre is no data in database. i want use maybe "HardCode".
do you mean that you want to insert data through gridview plz explain your problem
-
do you mean that you want to insert data through gridview plz explain your problem
their is an event on endedit of Datagridview on which you can work on to get ur results