473,508 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visible Bindable Property - Eval code help

In my gridview, I have a template column whose 'visible property' I
wish to bind to a database field called "TransactionType" which is of a
string datatype.

I only want the data in this gridview column to be visible when the
"TransactionType" field = "Income"

i.e. I want to do something like this for the visible property:

IF Eval("TransactionType") = "Income"

But I don't know the syntax.

Can anyone help? Thank you.

Sep 30 '06 #1
1 1929
Ok i figured it out, I just take the if away!

Thank you.

Steve wrote:
In my gridview, I have a template column whose 'visible property' I
wish to bind to a database field called "TransactionType" which is of a
string datatype.

I only want the data in this gridview column to be visible when the
"TransactionType" field = "Income"

i.e. I want to do something like this for the visible property:

IF Eval("TransactionType") = "Income"

But I don't know the syntax.

Can anyone help? Thank you.
Sep 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
791
by: João Santa Bárbara | last post by:
hi all i have created my own navigation component with several buttons, i have based it on the currency manager using a few handlers. but my problem is, in other component that i have created i...
3
3560
by: Miguel.Herrera | last post by:
I like to create an assembly with a property exposed in COM as bindable. I have tried to use attribute but when I check the typelib produced by regasm for my assembly the property does not have...
0
1275
by: Nathan Sokalski | last post by:
I am learning how to use the System.ComponentModel class in VB.NET so that I can add my ASP.NET controls to Visual Studio .NET 2003. I have managed to make my control properties visible in the...
2
1172
by: MattBell | last post by:
I have what I'm hoping doesn't turn into a very big problem. We have a set of value objects which all inherit from a base value object which contains functionality common to all of the objects. We...
3
3680
by: keithb | last post by:
Using a GridView, I get a "Specified cast is not valid" error when binding the Visible propery of a hyperlink control to a DataTable text field. The error goes away if I replace the data binding...
0
2403
by: landesjoe | last post by:
Hi, here's my problem in short: Text boxes in gridview don't seem to hold their value if the column's .Visible property is changed back and forth. I've got a form with a gridview populated from...
3
5664
by: Mark B | last post by:
I have a gridview that contains a linkButton in a template field. I want to set the visibility of the linkbutton based on a bit field in a database. Selecting the proper field in editbindings...
7
1582
by: RolfHerbert | last post by:
Hi all, Source code below. I am using an sqldatasorce to populate a datagrid. I am using datakeyIds. I am interested in two keys which I have added to the datakeyids, however if either of the...
1
1523
by: ra220511 | last post by:
Can some please help me. Basically i have 3 radio buttons in a repeater. <ItemTemplate> <asp:RadioButton ID="rdoAnswer1" runat="server" text='<%# Eval("Answer1")%>' GroupName='<%#...
0
7132
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5640
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.