Width="700" OnRowCommand="gv_Recored_RowCommand" OnPageIndexChanging="gv_Recored_PageIndexChanging"
OnSelectedIndexChanged="gv_Recored_SelectedIndexChanged">
<PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" />
<Columns>
<asp:TemplateField HeaderText="Sl.No">
<ItemTemplate>
<div style="text-align: center">
<%#Container.DataItemIndex + 1 %>
div>
ItemTemplate>
asp:TemplateField>
<asp:TemplateField HeaderText="Request Status_ID" Visible="false">
<ItemTemplate>
<asp:Label ID="lbl_Request_Status_ID" runat="server" Text='<%#Bind("RequestStatus_ID") %>'>asp:Label>
ItemTemplate>
<ItemStyle Width="170px" />
asp:TemplateField>
<asp:TemplateField HeaderText="Request type">
<ItemTemplate>
<asp:Label ID="lbl_Request_type" runat="server" Text='<%#Bind("RequestType") %>'>asp:Label>
ItemTemplate>
<ItemStyle Width="170px" />
asp:TemplateField>
<asp:TemplateField HeaderText="Request No">
<ItemTemplate>
<asp:Label ID="lbl_Request_No" runat="server" Text='<%#Bind("Request_ID") %>'>asp:Label>
ItemTemplate>
<ItemStyle Width="100px" />
asp:TemplateField>
<asp:TemplateField HeaderText="Receving Office">
<ItemTemplate>
<asp:Label ID="lbl_Receving_office" runat="server" Text='<%#Bind("ReceivingOffice") %>'>asp:Label>
ItemTemplate>
<ItemStyle Width="180px" />
asp:TemplateField>
<asp:TemplateField HeaderText="JTO">
<ItemTemplate>
<asp:Label ID="lbl_JTO" runat="server" Text='<%#Bind("JTO") %>'>asp:Label>
ItemTemplate>
<ItemStyle Width="150px" />
asp:TemplateField>
Columns>
asp:GridView>

Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 25, 2014, 12:54 AM EDT
1. add the model popup extender out side the grid control.
2. on grid view row command event, check the command name and call the show the model popup.
like this
protected void gwIndividualList_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == CMD_MOREINFO)
{
try
{
int index = Convert.ToInt32(e.CommandArgument);
showAINumberModelPopup(index,gwIndividualList);
}
catch (Exception ex)
{ AppException.HandleException(ex); }
}
else if (e.CommandName == "cmdMore")
{
try
{
int index = Convert.ToInt32(e.CommandArgument);
showFlagDescModelPopup(index, gwIndividualList);
}
catch (Exception ex)
{ AppException.HandleException(ex); }
}
}
Channabasava Dabarabadi60 reputationPosted Jun 25, 2014, 1:13 AM EDT
Could you please post the function code of showAINumberModelPopup()
Thank You in advance
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 25, 2014, 4:43 AM EDT
{
if (!string.IsNullOrEmpty(aiID))
{
AIID = aiID;
modalPopupRevisions.Show();
}
}