eramgarden
Contributor
- Joined
- Mar 8, 2004
- Messages
- 579
On this site:
http://www.4guysfromrolla.com/webtech/082901-1.shtml
He binds a dataset to datagrid:
Pubs.DataSource = DS
Pubs.Databind()
But I have a radiobuttonlist.. How can I bind radiobuttonlist to dataGrid? doable??
This is what I have:
http://www.4guysfromrolla.com/webtech/082901-1.shtml
He binds a dataset to datagrid:
Pubs.DataSource = DS
Pubs.Databind()
But I have a radiobuttonlist.. How can I bind radiobuttonlist to dataGrid? doable??
This is what I have:
Code:
Dim dg As DataGrid = New DataGrid()
Dim myDS As DataSet = New DataSet("test")
Dim myDA As SqlDataAdapter = New SqlDataAdapter()
myDA.SelectCommand = cmd
myDA.Fill(myDS, "test")
Dim RcdCount = myDS.Tables("test").Rows.Count.ToString
dg.DataSource = myDS
dg.DataBind()
[b]rblDisplayIncidents.DataSource = ?????
rblDisplayIncidents.DataBind()[/b]
dg.AllowPaging = True
dg.AllowCustomPaging = False
dg.PageSize = 3
dg.PagerStyle.Visible = False