<%@ Page Language="C#" AutoEventWireup="True" %> <%@ Import Namespace="System.Data" %> ASP.NET Example

for (int i = 0; i < 9; i++) { dr = dt.NewRow(); dr[0] = i; dr[1] = "Item " + i.ToString(); dr[2] = DateTime.Now; dr[3] = (i % 2 != 0) ? true : false; dr[4] = 1.23 * (i+1); dt.Rows.Add(dr); } DataView dv = new DataView(dt); return dv; } void Page_Load(Object sender, EventArgs e) { if (!IsPostBack) { RadioButtonList1.DataSource = CreateDataSource(); RadioButtonList1.DataTextField="StringValue"; RadioButtonList1.DataValueField="CurrencyValue"; RadioButtonList1.DataBind(); } } void Index_Changed(Object sender, EventArgs e) { Label1.Text = "You selected " + RadioButtonList1.SelectedItem.Text + " with a value of $" + RadioButtonList1.SelectedItem.Value + "."; } ASP.NET Example

Save your page and get a link to view it live, anywhere.