Hi,
The gridview contains a radiobuttonlist with boolean values (true/false)
coming from a database.
In normal mode, the gridview displays True or False for that field.
What i want is to change True' and 'False' by 'Yes' and 'No' in normal mode.
I tried this, but still get True / False.
Thanks for help
Ben
<asp:TemplateFi eld>
<EditItemTempla te>
<asp:RadioButto nList ID="r1" SelectedValue=' <%# Bind("myfield") %>'
runat="server">
</asp:RadioButton List>
</EditItemTemplat e>
<ItemTemplate >
<asp:Label ID="Label31" runat="server" Text='<%# Bind("myfield")
%>'></asp:Label>
</ItemTemplate>
</asp:TemplateFie ld>
------------------------------
Protected Sub GridView1_RowCr eated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Grid ViewRowEventArg s) Handles GridView1.RowCr eated
If e.Row.RowState And DataControlRowS tate.Normal =
DataControlRowS tate.Normal Then
If e.Row.RowType = DataControlRowT ype.DataRow Then
Dim lb As Label
lb = CType(e.Row.Fin dControl("label 31"), Label)
If lb.Text = "True" Then
lb.Text = "Yes"
Else
lb.Text = "No"
End If
End If
End If