<asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
              AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" 
              BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="filedindex" 
              ForeColor="Black" GridLines="Vertical" 
              onpageindexchanging="GridView1_PageIndexChanging" 
              onrowcancelingedit="GridView1_RowCancelingEdit" 
              onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting" 
              onrowediting="GridView1_RowEditing" Width="644px">
              <FooterStyle BackColor="#CCCC99" />
              <RowStyle BackColor="#F7F7DE" />
              <Columns>
                  <asp:BoundField DataField="menuid" HeaderText="编号" />
                  <asp:BoundField DataField="menuname" HeaderText="名称" />
                  <asp:BoundField DataField="mlevel" HeaderText="层次" />
                  <asp:BoundField DataField="fieldname" HeaderText="字段" />
                  <asp:BoundField DataField="e_fieldname" HeaderText="E字段" />
                  <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
                  <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />              </Columns>
              <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
              <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
              <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
              <AlternatingRowStyle BackColor="White" />
          </asp:GridView>想实现根据sql语句里条件设置 编辑及删除 为只读,应该是在gridview_rowdatabound事件里实现的吧,具体的实现方式是??