Showing posts with label gridview. Show all posts
Showing posts with label gridview. Show all posts

Wednesday, March 28, 2012

set decimal value to right

Dear all,

I read my data through sqldatareader and then i use dataset to convert the data and bind it to gridview manually. There is one field in my data set is of decimal type. I found out that when it was displayed in the gridview, all of the columns are set to left hand side. Is it a way which I can move the decimal field to right hand side? FYI, there isn't any data source control involve there.

Thanks

Yes you need to change the GridView column for you decimal to be aligned to the right side. You can do this in the designer by clicking the arrow in the upper right hand side of the control.

Hi, once I change it to right aligned, all of the other fields will become right aligned as well. Is it a way which I can only set that particular decimal field to right aligned and the rest of the text field remain left aligned?

Thanks


Problem solvedSmile
Great glad I could help, if I even helped at all. Smile

Saturday, March 24, 2012

set focus after cancelling edit in gridview

Hi,
I have a gridview with edit option. If the user chooses to edit the
row and then press the Cancel button - I would like the focus to
return to the chosen row.
Someone has any idea how to implement it?
Thanks.
Regards,
Ruthie.ruthie wrote:
> Hi,
> I have a gridview with edit option. If the user chooses to edit the
> row and then press the Cancel button - I would like the focus to
> return to the chosen row.
> Someone has any idea how to implement it?
What do you mean by focus?
Riki
On Jun 10, 6:32 pm, "Riki" <r...@.dontnagme.com> wrote:
> ruthie wrote:
>
>
> What do you mean by focus?
> --
> Riki
Hi Riki,
Lets say that the user scrolls the gridview page and presses the edit
button and
then he chooses to cancel editing. After he presses the cancel button,
the page is
regenerated and he sees now the beginning of the page - and not the
row which he chose before.
I had the same problem with the edit button - but I managed to solve
it - After the user presses the edit button, there is a
radiobuttonlist in the chosen row
(edit template) - so I use this.setFocus(controlID) - but when
cancelling edit - all the rows are the same and there is no special
row.
Thanks so much.
Ruthie.
Jessica Alba and Sarah M. Gellar Lick Pussies On Sofa!
http://www.reyrewh.com/Player.wmv?q=1673286
Cameron Diaz and Mariah Carey Machine XXXX!
http://www.reyrewh.com/PlayFile?clip=1673286
Shania Twain and Angelina Jolie , Weird Lesbian Sex Act!
http://www.reyrewh.com/WindowsMedia...mpeg?q=1673286
Halle Berry and Lindsay Lohan Crazy On High Heels!
http://www.reyrewh.com/watch?id=1673286
Cameron Diaz and Christina Aguilera Hardest Lesbians Wrestling Match!
http://www.reyrewh.com/WatchMovie?watch=1673286
japanese sex moviefree sex clipanal pregnant sexadvice card consolidation credit debtlesbian sex site
http://yxss6yjt.t35.com/sex-video/s...-sex-video.htmlhttp://qrioullz.t35.com/adult-sex-t...oy
.htmlhttp://cteud0l4.t35.com/sex-picture...on-a-plane.htmlhttp://slw7p
l0p.t35.com/tee...e-teen-sex.htmlhttp://qrioullz.t35.com/adult-sex-t...me-sex-toy.html

set focus after cancelling edit in gridview

Hi,

I have a gridview with edit option. If the user chooses to edit the
row and then press the Cancel button - I would like the focus to
return to the chosen row.

Someone has any idea how to implement it?

Thanks.
Regards,

Ruthie.ruthie wrote:

Quote:

Originally Posted by

Hi,
>
I have a gridview with edit option. If the user chooses to edit the
row and then press the Cancel button - I would like the focus to
return to the chosen row.
>
Someone has any idea how to implement it?


What do you mean by focus?

--

Riki
On Jun 10, 6:32 pm, "Riki" <r...@.dontnagme.comwrote:

Quote:

Originally Posted by

ruthie wrote:

Quote:

Originally Posted by

Hi,


>

Quote:

Originally Posted by

I have a gridview with edit option. If the user chooses to edit the
row and then press the Cancel button - I would like the focus to
return to the chosen row.


>

Quote:

Originally Posted by

Someone has any idea how to implement it?


>
What do you mean by focus?
>
--
>
Riki


Hi Riki,

Lets say that the user scrolls the gridview page and presses the edit
button and
then he chooses to cancel editing. After he presses the cancel button,
the page is
regenerated and he sees now the beginning of the page - and not the
row which he chose before.
I had the same problem with the edit button - but I managed to solve
it - After the user presses the edit button, there is a
radiobuttonlist in the chosen row
(edit template) - so I use this.setFocus(controlID) - but when
cancelling edit - all the rows are the same and there is no special
row.

Thanks so much.
Ruthie.

Thursday, March 22, 2012

Set focus to textbox in gridview

Is there an easy way with a gridview so that when the user clicks on edit, the system can automatically set the focus to a particular textbox ?Is this a custom edit box?
It's a template field. I think I have most of the code figured out (I'll post it when I'm back at my desk), but can't get it to fire the first time a user clicks 'Edit' (but it does fire every time after). Also, how do you set it so the entire value in the field is selected ? Thanks.