Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
markyjj
Starting Member
8 Posts |
Posted - 2008-11-04 : 08:36:14
|
Can someone please help me with the following problem. I currently have a datgrid that is linked to an sqlexpress database. The user can change details by clicking on a row and then update any changes through an update button. However, I want to prevent the datagrid from having any blank cells and there should be data in very cell all the time.Is there a way to keep focus on the cell until data has been entered or any other methods I can use? Grateful for any advice......cheers. |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2008-11-04 : 12:35:28
|
What do you mean keep focus ? |
|
|
cvraghu
Posting Yak Master
187 Posts |
Posted - 2008-11-05 : 00:42:43
|
Do you mean preventing the user from submitting null data to db? If so validate on the button click and return focus on te grid cell. |
|
|
markyjj
Starting Member
8 Posts |
Posted - 2008-11-05 : 06:28:22
|
Thanks for the reply.....how do I actually go about detecting a null/blank entry in the cell in the button validation. because am not sure hot to actually detect a null value in the current cell. I have tried to enter code in the current cell validation handler but cant seem to detect a null value.Thanks again |
|
|
cvraghu
Posting Yak Master
187 Posts |
|
|
|
|