Click here to Skip to main content
15,880,469 members
Home / Discussions / C#
   

C#

 
QuestionCOM + Windows 7 Pin
Member 81371059-Aug-12 11:21
Member 81371059-Aug-12 11:21 
Questionndroid apps using C# Pin
UL UL ALBAB9-Aug-12 7:45
UL UL ALBAB9-Aug-12 7:45 
AnswerRe: ndroid apps using C# Pin
Paul Conrad9-Aug-12 8:35
professionalPaul Conrad9-Aug-12 8:35 
QuestionQuestions For Entity Framework Gurus Pin
Kevin Marois9-Aug-12 7:00
professionalKevin Marois9-Aug-12 7:00 
AnswerRe: Questions For Entity Framework Gurus Pin
Ed Hill _5_9-Aug-12 22:12
Ed Hill _5_9-Aug-12 22:12 
AnswerRe: Questions For Entity Framework Gurus Pin
Pete O'Hanlon9-Aug-12 22:29
mvePete O'Hanlon9-Aug-12 22:29 
QuestionChange Buttonfield image dynamically Pin
Alagiri.periyasamy@merrillcorp.com9-Aug-12 4:41
Alagiri.periyasamy@merrillcorp.com9-Aug-12 4:41 
AnswerRe: Change Buttonfield image dynamically PinPopular
Pete O'Hanlon9-Aug-12 5:27
mvePete O'Hanlon9-Aug-12 5:27 
Please, start asking ASP.NET questions in the ASP.NET forum. There are so many grid views that have different behaviours depending on what the underlying technology, that it we could quite easily give you the wrong answer.

Also, could you please change your user name? If you don't, you will end up being spammed.

Now, as to your question (and please let this be the last ASP.NET one that you ask in this forum), how you change your button field really depends on how you want to trigger the field change. If it's just based on when you are binding the data to the GridView, there is a RowDataBound event that you can hook into when each row is bound to data. What you would do in this method is find the field you want (here's a crude method):
C#
private void CustomersGridView_RowDataBound(Object sender, GridViewRowEventArgs e)
{
  if (e.Row.RowType == DataControlRowType.DataRow)
  {
    Button btnField = (Button)e.Row.FindControl("btnField");
  }
}

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

QuestionThe configuration section cannot contain a CDATA or text element. Pin
Alagiri.periyasamy@merrillcorp.com9-Aug-12 1:23
Alagiri.periyasamy@merrillcorp.com9-Aug-12 1:23 
AnswerRe: The configuration section cannot contain a CDATA or text element. Pin
Eddy Vluggen9-Aug-12 1:26
professionalEddy Vluggen9-Aug-12 1:26 
AnswerRe: The configuration section cannot contain a CDATA or text element. Pin
Peter_in_27809-Aug-12 1:29
professionalPeter_in_27809-Aug-12 1:29 
QuestionA question about closing socket Pin
tiwal8-Aug-12 23:55
tiwal8-Aug-12 23:55 
AnswerRe: A question about closing socket Pin
Philip Stuyck9-Aug-12 11:24
Philip Stuyck9-Aug-12 11:24 
GeneralRe: A question about closing socket Pin
tiwal9-Aug-12 22:56
tiwal9-Aug-12 22:56 
QuestionHow to write Events in Asp .Net Pin
Member 84809808-Aug-12 22:37
Member 84809808-Aug-12 22:37 
AnswerRe: How to write Events in Asp .Net Pin
Ed Hill _5_8-Aug-12 23:09
Ed Hill _5_8-Aug-12 23:09 
AnswerMessage Closed Pin
8-Aug-12 23:32
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:32 
SuggestionRe: How to write Events in Asp .Net Pin
Shameel8-Aug-12 23:54
professionalShameel8-Aug-12 23:54 
AnswerRe: How to write Events in Asp .Net Pin
BobJanova9-Aug-12 2:13
BobJanova9-Aug-12 2:13 
GeneralRe: How to write Events in Asp .Net Pin
Member 84809809-Aug-12 18:42
Member 84809809-Aug-12 18:42 
Generalres://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Alagiri.periyasamy@merrillcorp.com8-Aug-12 21:13
Alagiri.periyasamy@merrillcorp.com8-Aug-12 21:13 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Pete O'Hanlon8-Aug-12 23:09
mvePete O'Hanlon8-Aug-12 23:09 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:23
Alagiri.periyasamy@merrillcorp.com8-Aug-12 23:23 
GeneralRe: res://ieframe.dll/navcancl.htm#http://localhost:2441/ErrorPage.aspx?ErrorId= Pin
Pete O'Hanlon8-Aug-12 23:31
mvePete O'Hanlon8-Aug-12 23:31 
GeneralConvert Word Doc to Byte Pin
ASPnoob8-Aug-12 19:46
ASPnoob8-Aug-12 19:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.