Hi,
> thanks for the info, but it's rather unintelligable for someone new at
> this stuff.
[quoted text clipped - 4 lines]
> bindingsourcename.fieldname.property=value but i havent found anything
> like it
Technically there is a way to do this but not using that syntax making it
more advanced then what i showed you.
> in your sample, it looks like i have to deternine the row# and i have no
> idea of the row# becasue the dataentrysform is creating a NEW record, and
> doesnt yet exist in the table, as i understsand it.
It may not yet exist in the DataTable it will exist in the DataView and you
don't need to know the row# if you used the second part of code i gave you:
Dim DataRowView drv As DataRowView = DirectCast(
YourBindingSource.Current, DataRowView)
drv("colname1") = value1
drv("colname2") = value2
...
> are you serious about you example? is there not a more simple way to use
> the existing bindingsource to reference the field??
Not that i know of.
HTH,
Greetings
> confused....
>
[quoted text clipped - 34 lines]
>>
>>> help please
mikeslaptop - 15 Oct 2005 05:24 GMT
hey, thanks again. i shall attempt to implement your code sample.
i really appreciate your help.
> Hi,
>
[quoted text clipped - 71 lines]
>>>
>>>> help please
mikeslaptop - 15 Oct 2005 05:34 GMT
ummmm, sorry for the further bother, but------
i'm suspecting a problem in the syntax
is this spelled right? getting errors.- datarowview not defined
> Dim DataRowView drv As DataRowView = DirectCast(YourBindingSource.Current,
> DataRowView)
Bart Mermuys - 15 Oct 2005 05:52 GMT
Hi,
> ummmm, sorry for the further bother, but------
> i'm suspecting a problem in the syntax
> is this spelled right? getting errors.- datarowview not defined
Put "Imports System.Data" at the top of your file or use
"System.Data.DataRowView".
hth,
greetings
>> Dim DataRowView drv As DataRowView =
>> DirectCast(YourBindingSource.Current, DataRowView)
mikeslaptop - 15 Oct 2005 06:08 GMT
i declared it at the top of one of my modules,
but now am getting new error- expected end of statement
>>> Dim DataRowView drv As DataRowView =
>>> DirectCast(YourBindingSource.Current, DataRowView)