I believe it's irrelevant of what type of combo box i'm using, but I'm using a Rad Combo Box. My data source not only selects data for the Data Text Field and Value Field but it also selects a couple of other columns. I want to get the values of those columns for the selected Item. How can i accomplish this on selectedindexchanged?
<table width="100%">
<tr>
<td align="center" ><strong>Please select a policy :</strong>
<telerik:RadComboBox ID="RadComboPolicy" runat="server" Width="400px" OnSelectedIndexChanged="RadComboPolicy_SelectedIndexChanged" DataSourceID="SqlDataSource2" AppendDataBoundItems="true" DataTextField="Pname" AutoPostBack="true" DataValueField="PID">
<Items>
<telerik:RadComboBoxItem runat="server" Selected="true" Value="-1" Text="Select a Policy to Begin" />
</Items>
</telerik:RadComboBox>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ConnectionString %>" SelectCommand="select p.pid,p.pname,p.startdate,p.enddate from insurance..policy p">
</asp:SqlDataSource>
</td>
</tr>
</table>
protected void RadComboPolicy_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
//Here i want to get the startdate and enddate
}