Dear All,
I want to customize error msg of my own in place of the following.
"Error when committing the row to the original data store"
This error msg appears when we set DataColumn to AllowDbnull = False and try to update the DataTable with a null value.
Any one has the solution to this...
Your code is so big in its clevernessss....
Thanks a lot cjard,
The code is so small, But So big in its clevernesssssss...
I wanted to give u some roses instead of this thumpsup. But unfortunately our forum does not have Roses ( emoticons)
Special thanks for your explaination and video demo...
Thanks cjard,
I have googled for it long before posting into the forum. But all I have found was related with Database (sql server , oracle....) and answered with identity column of sql server, sequence of oracle or Autonumber field of Access DB. not with my problem of TempDataTable.
This...
Thanks for your reply cjard,
This autonumber in my app. won't be sent to the server(or database) this datagrid and its autonumber is used just for display purpose only. once displayed and printed this tempdatatable will be disposed.
This ItemNo column is just to identify to the user how many...
Thank you very much cjard,
I will try to code it and post it if I succeeded for the benefit of others who use older version.
thanks for your advise for upgrade. I will try my best to upgrade to VS2005 in near future.
Thank you very much cjard,
My problem is not Concating two columns. the problem is LookUp with expression.(if I enter CustomerID into TempCustomer DataTable then CustomerName column is filled automatically with first & last name)
So, there is no Lookup with DataColumn Expression? Or otherwise...
Thank you very much cjard,
So, I should use "IsNull" to Evaluate? I tried IsNull But it is not giving error or fetching data (I don't know whether my syntax is correct:confused:).
How could we assign values from 1st DataTable into the Second DataTable Expression column? If anybody know the...
Thanks cjard,
I have tried all options those I know to generate itemNo column to autoincrement. then I come up with this. Also I tried to put this into DataTable instead of putting into form directly as below but it does not update values as I add rows to the datatable.
If you can figureout...
Thank you very much everybody.
Now it is solved. Here I provide the code in order to help others who have similar problem.
Private Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim nrows As Integer = tblTempInvoice.Rows.Count
Dim AutoNum(nrows...
Dear all,
I have error " There is no row at position 0" at DataColumn Expression.
Can any one help me please??
First Table :-
Public Function GetCustomerDetail(ByVal CustomerID As String) As DataTable
Dim techConnection As OleDbConnection = New OleDbConnection(strConn)
Dim...
For Next Error.
Dear All,
I have following error in For Next statement.
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll
Additional information: Specified argument was out of the range of valid values.
Private Sub...
Thank you very much Arg81.
Many of the methods in your code unavailable to me. I have tried all as here. but so far I have not succeeded.
Can any one help me please???:confused:
Private Sub dataGrid1_Navigate(ByVal sender As Object, ByVal ne As System.Windows.Forms.NavigateEventArgs)...
Thanks Arg81
I'm also using DataGrid only
You are .Net 3.0. I'm using VS2003 and .Net 1.1 only. So some of commands (like "Me.grdRevision.MoveLast()" and "grdRevision.VisibleRows" ) in your syntax unavailable to me and I'm unable to use your code.
I think DataColumn.Expression can do this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.