Re: quick issue
From: Bruno Jouhier [MVP] (bjouhier_at_club-internet.fr)
Date: 06/01/04
- Next message: Steven Cheng[MSFT]: "Re: WebClient with username + password"
- Previous message: Jon Skeet [C# MVP]: "Re: quick issue"
- In reply to: troy: "Re: quick issue"
- Next in thread: troy: "Re: quick issue"
- Reply: troy: "Re: quick issue"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Jun 2004 11:35:21 +0200
Did you try e.Item.Cells[1].Text ?
Bruno.
"troy" <troy@ttech.com> a écrit dans le message de
news:%23e%23eYc7REHA.1036@TK2MSFTNGP10.phx.gbl...
> sorry - didnt mean to offend anybody.
>
> The issue is that I dont know how to update the fields changed in the
> datagrid when a user clicks on the edit function. I tried using the
> following logic but it gives me an castring error:
>
> // Gets the value the TextBox control in the third column
> tb = (TextBox)(e.Item.Cells[1].Controls[0]);
> username = tb.Text;
>
>
> "Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
> news:MPG.1b26542e5556bb8498aab3@msnews.microsoft.com...
> > Bruno Jouhier [MVP] <bjouhier@club-internet.fr> wrote:
> > > What's the problem?
> > >
> > > You cannot just post a piece of code and expect that people are going
> to:
> > > a) try to figure out what you are trying to do
> > > b) try to figure out what is going wrong
> > > c) fix your problem
> >
> > Agreed.
> >
> > > You need to give more context. Otherwise nobody's going to help you.
> > > Also, don't post whole files like this, only post small pieces of code
> that
> > > are relevant to your problem.
> >
> > While I agree that posting huge chunks of code isn't nice (especially
> > when OE has mangled it so there's an empty line between each line of
> > code), I have a strong personal preference for whole files. Whole files
> > can be cut and paste, and then compiled with no further effort.
> > Snippets take more time. I just like the whole files to still be small
> > :)
> >
> > --
> > Jon Skeet - <skeet@pobox.com>
> > http://www.pobox.com/~skeet
> > If replying to the group, please do not mail me too
>
>
- Next message: Steven Cheng[MSFT]: "Re: WebClient with username + password"
- Previous message: Jon Skeet [C# MVP]: "Re: quick issue"
- In reply to: troy: "Re: quick issue"
- Next in thread: troy: "Re: quick issue"
- Reply: troy: "Re: quick issue"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|