0

Hi,

I have table in Database and i need to get the get the values of column and check for the values. If the value in row of that column is null...the imagebutton in grid view should be disabled.
I am unable to get the rows values.

Can anyone help??

Thanks in Advance.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by prashantchalise
0

Hello,

Hope this works

<asp:TemplateField>
			<ItemTemplate>
				<asp:ImageButton ID="ibtnTestBtn" ImageUrl="yourimageURI.jpg" Enabled='<%#IIf(IsDBNull(DataBinder.Eval(Container, "DataItem.ColumnName")), True, False)%>' runat="server" />
			</ItemTemplate>
		</asp:TemplateField>

Edited by prashantchalise: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.