Help needed with Datagrid field lenghts control
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Hi
I am using VB6 and SQL 2000 as my data source
I have populated my datagrid and need to sets some rules on it. This
is where I am struggling.
When the user is entering data into a field I need any error message
to appear if they try to key more charactersd than field will allow
them to store
i.e if I have Employee_Number AS varchar(8)
As soon as they press the ninth character an error pops up advising
that they have exceeded the filed size.
.
Relevant Pages
- Re: Validation for datagrid c# code
... Please remember that teh grid is only a way to show the content of a ... Do you keep a reference to the data source used to bind the grid? ... > check and see whether a datagrid contains any rows inserted into it and if ... > then i'd like it to display the error message below and not move forward. ... (microsoft.public.dotnet.languages.csharp) - Re: Add row to datagrid without underlying table?
... I'm afraid a datagrid may not be the correct choice for you then. ... representation of this data in memory. ... be used independently of its data source. ... display ADO.NET data. ... (microsoft.public.dotnet.languages.csharp) - Simple Dataset Question
... that utilizes a dataset, dataadapter and datagrid. ... User A retrieves data from data source and sits on the data for some time ... updates the data source using the dataadpter ... (microsoft.public.dotnet.languages.vb) - RE: Simple Dataset Question
... dataadapter and datagrid. ... > User A retrieves data from data source and sits on the data for some time ... > updates the data source using the dataadpter ... (microsoft.public.dotnet.languages.vb) - Re: DataGrid [Attribute] - $10 for answer
... > descriptor information which the grid will pick up and use to display it's ... > the data grid column styles first, and then bind your data source to the ... trivial to have originally implemented the DataGrid in such a way as to query ... >> public string FirstName ... (microsoft.public.dotnet.languages.csharp) |
|