asp.net - Replace buttoncolumn "Delete" with a Image Button in Gridview -


यह मेरा ग्रिडव्यूव कोड है

  & lt; asp: DataGrid id = "dg" runat = "सर्वर" ondeletecommand = "Delete_Item" & gt; & LT; कॉलम & gt; & Lt; asp: buttoncolumn buttontype = "linkbutton" कमांडनाम = "हटाएं" पाठ = "निकालें" / & gt; & Lt; / कॉलम & gt; & Lt; हेडर स्टाइल बैकएक्लोर = "# 95 सी 736" फोरक्लोर = "व्हाइट" फ़ॉन्ट-बोल्ड = "ट्रू" / & gt; & Lt; / एएसपी: डेटा ग्रिड & gt;   

मैं एक छवि के साथ अपने बटन का स्तंभ बदलना चाहता हूं, मुझे अपने ग्रिडव्यू में क्या करना चाहिए?

मैं इसके लिए एक टेम्पलेट कॉलम का उपयोग करेगा:

  & asp: DataGrid ID = "DataGrid1" runat = "server" AutoGenerateColumns = "false" & gt; & LT; कॉलम & gt; & LT; एएसपी: TemplateColumn & gt; & LT; ItemTemplate & gt; & Lt; एएसपी: इमेजबटन आईडी = "बीटीएन डेलेट" रनैट = "सर्वर" इमेजयूआरएल = "/ इमेज / डिलीट पेज" कमांडएनम = "डिलीट" / & gt; & Lt; / ItemTemplate & gt; & Lt; / एएसपी: TemplateColumn & gt; & Lt; / कॉलम & gt; & Lt; / एएसपी: डेटा ग्रिड & gt;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -