I have query that returns several result sets. One of these resultsets is turned into a table and bound to a grid. That works fine.
I have two other result sets that return lists of values; let's call them aList and bList. I will turn these into tables as well because I believe the GridBoundColumn was designed to work best with tables.
Here is my problem. I am already specifying a resultset as a DataSouce for the grid.
How do I get the GridBoundColumns in the grid mapped to the aList and bList tables?
Here is how the columns are defined:
I have a Bind method that is binding the table to the grid and it looks like this:
The XML from the resultset is in the following form:
<Details>
<field1></field1>
<field2></field2>
<Types></Types> -- this is the first dataset that I want to display in a drop down in a grid row.
<Offices></Offices> -- this is the second dataset that I want to display in a drop down in a grid row.
</Details>
Any ideas?
I have two other result sets that return lists of values; let's call them aList and bList. I will turn these into tables as well because I believe the GridBoundColumn was designed to work best with tables.
Here is my problem. I am already specifying a resultset as a DataSouce for the grid.
How do I get the GridBoundColumns in the grid mapped to the aList and bList tables?
Here is how the columns are defined:
<telerik:GridDropDownColumn
DataField="Office"
HeaderText="Offices"
UniqueName="chkOffices">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>
<ItemStyle HorizontalAlign="Center" />
</telerik:GridDropDownColumn>
<%
--***********************************************--%>
<telerik:GridDropDownColumn
DataField="TypeName"
HeaderText="Types"
UniqueName="chkTypes">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>
<ItemStyle HorizontalAlign="Center" />
</telerik:GridDropDownColumn>
I have a Bind method that is binding the table to the grid and it looks like this:
private void BindDetails(DataTable Details, DataTable List, DataTable TiersList, DataTable officeList)
{
RadGrid grid = radGridPromoDetails;
grid.
MasterTableView.SortExpressions.Clear();
grid.
CurrentPageIndex = 0;
grid.
DataSource = Details;
grid.
DataBind();
}
The XML from the resultset is in the following form:
<Details>
<field1></field1>
<field2></field2>
<Types></Types> -- this is the first dataset that I want to display in a drop down in a grid row.
<Offices></Offices> -- this is the second dataset that I want to display in a drop down in a grid row.
</Details>
Any ideas?