473,325 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

DataGrid: How to change PushButton format?

Hello All,

I have an assignment that have a DataGrid using EditCommandButton 'Edit' and 'Cancel' PushButton style. I am asking to change the font-size and color of the text, and set the background color. I tried it over and over and could not figure out how to do it.

Please help!! Its urgent.

Thank you in advance.
Sep 14 '07 #1
3 1422
nateraaaa
663 Expert 512MB
Hello All,

I have an assignment that have a DataGrid using EditCommandButton 'Edit' and 'Cancel' PushButton style. I am asking to change the font-size and color of the text, and set the background color. I tried it over and over and could not figure out how to do it.

Please help!! Its urgent.

Thank you in advance.
Are you asking how to change the font, color, and background of a datagrid row? a datagrid cell? or the button you clicked? What have you tried so far?

Nathan
Sep 14 '07 #2
Hi, I have the following code within the DataGrid --

<asp:EditCommandColumn ButtonType="PushButton" edittext="Edit" canceltext="Cancel" updatetext="Update" />

The font of the "Edit" "Cancel" and "Update" PushButton did not match the font of entire application. I just found a way to overwrite the ItemCreated and change the font of "Edit" button. However, when user clicks "Edit" button, the "Update" and "Cancel" still has the default font.

Could you please help? It's urgent.

Thank you in advance.
Sep 14 '07 #3
nateraaaa
663 Expert 512MB
Hi, I have the following code within the DataGrid --

<asp:EditCommandColumn ButtonType="PushButton" edittext="Edit" canceltext="Cancel" updatetext="Update" />

The font of the "Edit" "Cancel" and "Update" PushButton did not match the font of entire application. I just found a way to overwrite the ItemCreated and change the font of "Edit" button. However, when user clicks "Edit" button, the "Update" and "Cancel" still has the default font.

Could you please help? It's urgent.

Thank you in advance.
What code do you have in the code behind?
Sep 14 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mark | last post by:
I have two buttons in a DataGrid. If I leave the ButtonType = "LinkButton", the EditCommand and DeleteCommand events fire fine. If I change th ButtonType = "PushButton", the events do not fire. ...
12
by: James Norton-Jones | last post by:
Hi, Am I trying to hold the data of a DataGrid in a label so that when the form is reposted the DataGrid can be repopulated. The problem I am having is that I don't understand how to get the...
2
by: Nick Gilbert | last post by:
We have a Datagrid which contains a template column with a button in it, as well as an actual button column. If either of the buttons are clicked, the ItemCommand event does not fire. If...
9
by: tshad | last post by:
Is there a way to use your own image in place of the automatic one that ASP uses when doing editing in your DataGrid pages? We already have a style of button we are using and would like to be...
1
by: Joe | last post by:
Hi, I have form with datagrid. This is what my form tag looks like, <form runat="server"> <asp:label runat="server" id="lblMessage" /> <asp:DataGrid runat="server" id="articleList"...
0
by: BrianDH | last post by:
Hi I have a web form with a Datagrid. Within the data grid I have a Column button. If the button is of type "Linkbutton" my VB code-behind will catch the users "click" However, if it is set to...
5
by: Vik | last post by:
If there are a few Select buttons in a datagrid, is there a way to distinguish in code which button was clicked? Thanks.
0
by: DotQuery | last post by:
Hello ASP.NET team : I have a user control that be added into page at runtime , in a postback event handler . I save the information to view state , and load the user control again in...
2
by: brock wade | last post by:
I have a Datagrid that is working fine displying my records, but I'm trying to program buttons on each record line to launch another web page that shows all the details for the product: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.