Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:375863
More Search Options
RSS Available
Matching Posts
Re: Datagrid Fields not aligning
Shilpa and Samu, I tried both of your suggestions. Everything was still left aligned. Shilpas solution also included font and color styles. These were succesfully applied. So I couldn't understand why the alignment didnt work, then I realised that in my css file there was the following style: td { text-align : left ; font-size : small ;} This was overriding everything else. I removed it and my alignment started working. Initially I was surprised that this would apply to a datagrid, but then again
Posted to
Data Presentation Controls
(Forum)
by
Hoof Hearted
on 4/7/2009
Datagrid Fields not aligning
None of the Fields in my Datagrid are aligning. Here is an example of one field: < asp : BoundColumn DataField ="PricePerPiece" HeaderText ="Price Per Piece"> < HeaderStyle HorizontalAlign ="Center" Width ="50px" /> < ItemStyle HorizontalAlign ="Right" /> </ asp : BoundColumn > The headers and items in all columns are left-aligned. Why might this be? The declaration of the datagrid refers to my CSS file for formatting information
Posted to
Data Presentation Controls
(Forum)
by
Hoof Hearted
on 4/2/2009
Re: Problem converting VB to C# in a web page
That's it! I had missed the brackets off the .ToString It works fine now. Thanks for your help. Ian
Posted to
Data Presentation Controls
(Forum)
by
Hoof Hearted
on 4/2/2009
Re: Problem converting VB to C# in a web page
Thanks for the reply. That got me a bit further. The error I am getting now is: 'Cannot convert from object to string' I'm a C# noob. So I dont know how to fix this. My RemoveTrailingZeros() function expects a string parameter to be passed to it. I tried casting your expression. I also found that there is a .ToString method for Databinder.Eval. This gives the error: Cannot convert from 'Method Group' to string. How do I fix this?
Posted to
Data Presentation Controls
(Forum)
by
Hoof Hearted
on 4/2/2009
Problem converting VB to C# in a web page
I've got a problem with a snippet of VB I'm trying to convert to C#. It's complicated because the problem is buried within a .aspx page. This page has a datagrid which display records from a SQL Server database. When I first set up this page, I had a problem that numeric values were displaying with unnecessary trailing zeros. The customer asked me to remove them. Sometimes the value will be something like 0.000012. Other times it would be 0.340000 It's in the latter example that I
Posted to
Data Presentation Controls
(Forum)
by
Hoof Hearted
on 4/2/2009
Re: Focus() problem
In the morning i'll try this. The text box is currently hidden initially in order to prevent the user entering data under the wrong circumstances. The PDA has a built in barcode scanner. So this text box is to receive data from that.
Posted to
Getting Started
(Forum)
by
Hoof Hearted
on 1/7/2008
Re: Focus() problem
lahorya: >> trust me it will do the job. No It doesn't, trust me. I am wondering if this is something to do with the version of IE on the PDA. In the code behind the Button, i've tried Barcode.focus and page.setfocus "Barcode". Neither of them work. The focus seems to land on another button which is underneath the text box. If I press Shift+Tab on the PDA, then the focus moves back up to the text box. I've got tabindex properties set so I shouldn't need this code anyway
Posted to
Getting Started
(Forum)
by
Hoof Hearted
on 1/7/2008
Re: Focus() problem
Jwalin: I want the focus to occur when a button is clicked. I think that your suggestion is for what would happen if the Barcode Textbox is clicked. My Button already has an Onclick Event which performs other actions quite successfully before attempt to set the focus. If I try to call the BarcodeSetfocus from there, I get an error saying that the function is not declared. I assume this because the Java script is on the client side. Surya: In my original post I said I already tried putting Barcode
Posted to
Getting Started
(Forum)
by
Hoof Hearted
on 1/7/2008
Focus() problem
I have a simple page on a PDA which is running Windows Mobile 2003. All I want to do is when the user clicks a button, an asp:TextBox control becomes visible and receives the focus. I've tried the following: In the OnClick Event of the button, Barcode.focus And page.setfocus "Barcode" I've also tried a little Java script: < script language =javascript> Function BarcodeSetFocus() { document.all( 'Barcode' ).focus(); return false ; } </ script > Bearing in mind
Posted to
Getting Started
(Forum)
by
Hoof Hearted
on 1/7/2008
Re: asp:panel question
I tried using <div> but again when I set the width to 100% it expanded to width of my datagrid (this is about twice the width of my screen). This makes my whole page look silly. I need to keep the rest of my page displaying across the width of the screen, but I want my datagrid to be inside a window with scrollbars. I want the width of this window to automatically be the width of the screen. Ian
Posted to
Data Presentation Controls
(Forum)
by
Hoof Hearted
on 5/25/2007
Page 1 of 19 (188 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Channel 9 Live at PDC09: Dave Campbell
Channel 9:
Channel 9 Live at PDC09: Yousef Khalidi
Channel 9:
Twitter App for Zune Launches
WindowsClient:
Incarnate
WindowsClient:
Track Fedex packages with Bing
Channel 9:
Marty O'Donnell - The man behind the Halo Music
Channel 10:
Twitter App for Zune Launches
WindowsClient:
Rotate your text in the WPF DataGrid Column Headers
WindowsClient:
New gameplay video with D&D on Surface
WindowsClient:
ViewModel Pattern and Speech as UI. Help me Obi Wan, where’s the View?
Channel 9:
Karsten Januszewski and Tim Aidlin: Introducing Incarnate
Channel 9:
Reactive Extensions API in depth: Retry
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
Channel 10:
Office 2010 "5 Rules" Presentation
Channel 10:
30% off Expression Web 3 until Dec 28th
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online