I am develop a site but there's an issue is occur. I'm not sure hot can one access that data of power grid by which row the button is clicked on. That code is offered Bellow:

//Code of .aspx file :

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlEntry"
    CssClass="style1">
    <Columns>
        <asp:BoundField DataField="ReordID" HeaderText="ReordID" InsertVisible="False" SortExpression="ReordID"
            Visible="False" />
        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
        <asp:BoundField DataField="EmailID" HeaderText="EmailID" SortExpression="EmailID" />
        <asp:BoundField DataField="Password" HeaderText="Password" SortExpression="Password" />
        <asp:TemplateField HeaderText="Delete" SortExpression="Delete">
            <ItemTemplate>
                <asp:Button Text="Delete" runat="server" OnClick="Grid_Click" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <HeaderStyle BackColor="Gray" />
    <AlternatingRowStyle BackColor="#CCCCCC" />
</asp:GridView>
<asp:SqlDataSource ID="SqlEntry" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
    SelectCommand="SELECT * FROM [Entry]"></asp:SqlDataSource>

//Code of .CS file :

 protected void Refresh_Click(object sender, EventArgs e)
{
    GridView1.DataBind();
    resetdata();
}
protected void Submit_Click(object sender, EventArgs e)
{
    string str = "INSERT INTO Entry (Name, EmailID, Password) VALUES ('" + TextBox1.Text.Trim() + "','" + TextBox2.Text.Trim() + "','" + TextBox3.Text.Trim() + "');";
    Connection conn = new Connection(str);
    Refresh_Click(sender, e);
}
protected void resetdata()
{
    TextBox1.Text = "";
    TextBox2.Text = "";
    TextBox3.Text = "";
}
protected void Grid_Click(Object sender, EventArgs e)
{
    string str = "DELETE FROM Entry WHERE RecordID = @RecordID";
    Connection conn = new Connection(str);
    GridView1.DataBind();
    resetdata();
}

//Connection Class code :

public Connection(string qry)
{
    SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True");
    SqlCommand cmd = new SqlCommand();
    cmd.CommandType = System.Data.CommandType.Text;
    cmd.CommandText = qry;
    cmd.Connection = con;
    con.Open();
    cmd.ExecuteNonQuery();
    con.Close();
}

Let me know How do i remove data from SQL Server 2005 by using this web page.? What's the problem about this code..??

You can fasten a CommandArgument along with a CommandName for your button that consists of the ID -

<ItemTemplate>
     <asp:Button Text="Delete" runat="server" CommandArgument="<%# Eval('ReordID') %>" CommandName="REMOVE" OnClick="Grid_Click" />
 </ItemTemplate>

... adding a RowCommand event towards the GridView -

void GridView1_RowCommand(Object sender, GridViewCommandEventArgs e)
{

    if(e.CommandName=="REMOVE")
    {
        int orderId = Convert.ToInt32(e.CommandArgument);
        //Do Sql Here
    }
}