PC Review


Reply
 
 
=?Utf-8?B?Sm9za2VYUA==?=
Guest
Posts: n/a
 
      12th May 2004
Hi
I use a dataset with the name Klanten1
How can I read a value in a specified colom (with the name 'BlackList') in that datase

Th

JoskeXP
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      12th May 2004
Hi Joske

> I use a dataset with the name Klanten1.
> How can I read a value in a specified colom (with the name 'BlackList') in

that dataset

In a column is no value, the values (although also references) are in the
items, the columns describes the items.

When you want to have a value of the column Blacklist from a dataset with 1
table it can be for the first row

if Klanten1.tables(0).rows(0).item("Blacklist") = true then
doMessageNoSendings
end if

I hope this helps?

Cor


 
Reply With Quote
 
=?Utf-8?B?Sm9za2VYUA==?=
Guest
Posts: n/a
 
      12th May 2004

Hi

I have a form where I have differt textboxen with a binding to a dataset called klanten1
In this dataset I have col. with a name Blacklist with no binding to a textbox.(all the other col. have bindings with textboxen
When the value in this colom = true then I want a label (lblblacklist) with a text "BlackList"
When this value is false then I want to clear this label

Th

JoskeXP

 
Reply With Quote
 
Slonocode
Guest
Posts: n/a
 
      13th May 2004

"JoskeXP" <(E-Mail Removed)> wrote in message
news:C8C1E157-8D77-427E-9D9B-(E-Mail Removed)...
>
> Hi,
>
> I have a form where I have differt textboxen with a binding to a dataset

called klanten1 .
> In this dataset I have col. with a name Blacklist with no binding to a

textbox.(all the other col. have bindings with textboxen)
> When the value in this colom = true then I want a label (lblblacklist)

with a text "BlackList".
> When this value is false then I want to clear this label.
>
> Thx
>
> JoskeXP
>



You could make the lblblacklist not visible and bind it to column
"BlackList".
Then in your navigation code check if the lblblacklist is true or false and
populate a textbox.


 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      13th May 2004
Hi Joske,

I think I would have a look what the addhandler could do for you

Beneath a sample i once made for that, not your problem, however I think you
can do it yourself when you see this

I hope this answers your question?

Cor


Mybinding = New Binding("Text", ds.Tables(0), "mydatfield")
textdatfield.DataBindings.Add(Mybinding)
AddHandler mybinding.Format, AddressOf DBdateTextbox
AddHandler mybinding.Parse, AddressOf TextBoxDBdate
End sub
Private Sub DBdateTextbox(ByVal sender As Object, _
ByVal cevent As ConvertEventArgs)
If cevent.Value Is DBNull.Value Then
cevent.Value = ""
Else
Dim datum As Date
cevent.Value = datum.ToString("dd - MM - yyyy")
End If
End Sub
Private Sub TextBoxDBdate(ByVal sender As Object, _
ByVal cevent As ConvertEventArgs)
If cevent.Value.ToString = "" Then
cevent.Value = DBNull.Value
End If
End Sub


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 06:26 AM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ADO .NET 7 9th Dec 2003 02:50 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ADO .NET 2 31st Oct 2003 01:05 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ASP .NET 2 31st Oct 2003 01:05 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ASP .NET 2 31st Oct 2003 02:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 AM.