Databind DataGrid
- From: ".Net Frenzy" <u.thakur@xxxxxxxxxxxxxxxxxxx>
- Date: 10 Oct 2006 04:25:25 -0700
Hi Guys,
I am developing a webpart for Sharepoint. I have a databinded
dropdownlist which databinds from an existing Sharepoint List.
Now, when the user makes a selection in this DropDownList, I want that
a DataGrid should be populated. Now this DataGrid also databinds to
another existing Sharepoint List.
Any ideas, how I can achieve this. Don't worry about Postbacks or
populating datagrid, I have allready sorted that out.
Please HELP...
At the moment I am doing this.
Private Sub DataGrid_BindData
' Datagrid Properties
myDG = New DataGrid
myDG.GridLines = GridLines.Both
myDG.AutoGenerateColumns = False
myDG.Enabled = True
myDG.EnableViewState = True
' Column - 1
Dim bCol As New BoundColumn
bCol.HeaderText = "Sample "
bCol.DataField = myDDL.SelectedValue '<-- here i am passing the
selected item of
' of
dropdownlist. This style is not working.
dgBookings.Columns.Add(bCol)
End Sub
What should I do
.
- Follow-Ups:
- Re: Databind DataGrid
- From: S.S. Ahmed
- Re: Databind DataGrid
- Prev by Date: Re: knowing wich previleges i have
- Next by Date: Re: Upload to sharepoint via CDO or SPWeb
- Previous by thread: Development using object model in sharepoint 2007
- Next by thread: Re: Databind DataGrid
- Index(es):
Relevant Pages
|