Friday, April 20, 2012

Triger the event in DataGrid when changing occur in TemplateColumn(asp:radiobuttonlist)

To get the row index of DataGrid when change(asp:radiobuttonlist) occur in row of the TemplateColumn

<asp:DataGrid ID="dgTier2" runat="server" AutoGenerateColumns="False" Width="578px" 
Height="83px" OnItemDataBound="dgTier2_ItemDataBound">
<asp:BoundColumn DataField="TypeID" HeaderText="TypeID">
<asp:BoundColumn DataField="Type" HeaderText="Category Type">
<asp:TemplateColumn HeaderText="Manual Tracking Option" >
<ItemStyle VerticalAlign="Bottom" />
<asp:radiobuttonlist id="rdbtnManual" runat="server" on RepeatDirection="Horizontal">
<asp:listitem id="M" runat="server" Text="Manual" Value="1" />
<asp:listitem id="A" runat="server" Text="NoManual" Value="0" />

After changing the rediobutton selection to get the Rowindex of the changed row.if at all change happens in many rows i need make the collection of the Rowindexs.Is that passible.

No comments:

Post a Comment