c# - Add-Update-Delete GridView in asp.net -


i want populate gridview in asp.net web application.

in fact able scenario want develop based on user authentication. means let admin logged in must authorized edit fields of row in gridview. if employee logged in then, should applicable edit name , address columns in gridview. can ? have take under consideration.

in event can this?

also how can convert / create gridview user control?

let have column of edit command like...

<asp:templatefield>      <itemtemplate>       <asp:imagebutton id="ibtnedit" commandargument='<%# eval("id") %>' commandname="edit" runat="server" />                           </itemtemplate> </asp:templatefield> 

and have hide edit column, user not able edit records. need put condition like...

if(user not in in admin role) {   gridview1.column[editcolumnindex].visible = false; } 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -