Hi all,
I have the below condition to full fill my requirement.
below one is my gridview
<asp:GridView ID="Gv1Data" runat="server" Width="1150px" GridLines="Vertical" AutoGenerateColumns="false" ShowHeader="false">
<Columns>
<asp:TemplateField HeaderText="Column1">
<ItemTemplate>
<asp:TextBox runat="server" ID="Section_Column1" Text='<%# Eval("Section_Column1") %>' CssClass="TxtBox" ToolTip='<%# Eval("Section_Column1") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Column2">
<ItemTemplate>
<asp:TextBox runat="server" ID="Section_Column2" Text='<%# Eval("Section_Column2") %>' CssClass="TxtBox" ToolTip='<%# Eval("Section_Column2") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Column3">
<ItemTemplate>
<asp:TextBox runat="server" ID="Section_Column3" Text='<%# Eval("Section_Column3") %>' CssClass="TxtBox" ToolTip='<%# Eval("Section_Column3") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Column4">
<ItemTemplate>
<asp:TextBox runat="server" ID="Section_Column4" Text='<%# Eval("Section_Column4") %>' CssClass="TxtBox" ToolTip='<%# Eval("Section_Column4") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
i am binding database with gridview at page load, after next i am click the save button i want to validate below conditions.
if i entered gridview details are below like ,
Column1 |
Column2 |
Column3 |
Column4 |
|
|
|
|
|
|
|
|
|
|
|
|
in above grid i am entered first row details like below and save button click then no need to alert fill row details gridview.
Column1 |
Column2 |
Column3 |
Column4 |
Column |
|
|
|
|
|
|
|
in above condition the user entered first row first cell then we don't need alert message enter cell details.
Column1
|
Column2
|
Column3
|
Column4
|
F1Cell1
|
F1Cell2
|
|
F1Cell4
|
F2Cell2
|
F2Cell2
|
F2Cell3
|
F2Cell4
|
|
|
|
|
|
|
|
|
in above condition also no need to alert message , why the 1st and 2nd row , first cell is filled.
Column1
|
Column2
|
Column3
|
Column4
|
|
F1Cell2
|
F1Cell3
|
F1Cell4
|
|
F2Cell2
|
F2Cell3
|
F2Cell4
|
|
|
|
|
|
|
|
|
In above condition we require alert message why the 1st and 2nd row first cells are not entered. so, we required alert message.
Column1
|
Column2
|
Column3
|
Column4
|
|
|
|
|
F2Cell1
|
F2Cell2
|
F2Cell3
|
F2Cell4
|
|
|
|
|
|
|
|
|
In this case the first row first cell or entire first row all cells are not enter. so, we want to give alert message for enter cell fields.
Column1
|
Column2
|
Column3
|
Column4
|
F1Cell1
|
F1Cell2
|
F1Cell3
|
F1Cell4
|
|
|
|
|
F3Cell1
|
F3Cell2
|
F3Cell3
|
F3Cell4
|
|
|
|
|
In this case the 2nd row first cell or entire 2nd row all cells are not enter. so, we want to give alert message for enter cell fields.
How to validate above conditions. please help me.
Thanks in advance