473,378 Members | 1,236 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,378 software developers and data experts.

HOw Do i set the alignment in DataGrid (C# .NET)

In my datagrid (datasource is DataTable) all my double values are intended
towards left . how do i set it to right allignment. which property shall i
set and how do i display double value up to certain cedimal places.
Nov 2 '07 #1
1 1176
check this out
http://www.codeproject.com/cs/miscct...asp?print=true

Husam AL-A'araj
www.aaraj.net

"Kunal Patel" wrote:
In my datagrid (datasource is DataTable) all my double values are intended
towards left . how do i set it to right allignment. which property shall i
set and how do i display double value up to certain cedimal places.

Nov 3 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: hennovanrensburg | last post by:
Hi all, I've noted a couple of posts regarding the speed of a datagrid in a ..net win app. My datagrid consists of 37 rows and 12 cols, and is unacceptably slow. How can this be? Should I...
1
by: beachboy | last post by:
any most fast method that we can know the idicate the first row and last row in datagrid? ..NET 1.1 Thanks in advanced.
0
by: Bala | last post by:
How to make few columns as fixed one as like in MSHFlexgrid fixed column property. Is there any property for fixed column in Datagrid (.net) or is there any workaround for that? Please help me...
0
by: Carlos | last post by:
Hello all I have a SqlDataSource and a DataGrid1 link to it. I have the result of SQLQuery in my DataGrid1. I need to pass these selection to another webpage. Any ideas? Thanks a lot. C.
1
by: Kyjan | last post by:
Greetings to all! Whenever you click the mouse button (left) in the DataGrid, all selected rows are instantly unselected and the row you clicked on is selected. The only way to prevent this is...
1
by: =?Utf-8?B?QmVydA==?= | last post by:
Hi I want to create a datagrid which can edit insert and delete data through a stored procedure. Is there anyone who can sent me some sample code for this? thanks b
1
by: sherifffruitfly | last post by:
Hi all, I've got a form with a datagrid defined & presented to the user at runtime (code at the bottom.) With this, the user can happily enter all the data she likes. After a row of data is...
1
codesid
by: codesid | last post by:
Just to add the info in this community that I finally found a way to merge cells in a datagrid. In many other forums over the Internet we hear many different opinions, usually asking you to move to...
7
by: RolfHerbert | last post by:
Hi all, Source code below. I am using an sqldatasorce to populate a datagrid. I am using datakeyIds. I am interested in two keys which I have added to the datakeyids, however if either of the...
0
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hi Guys, I have created a datagrid in code, in which I have a column for deleted BoundColumn column2 = new BoundColumn(); column2.DataField = productsAdapter.Log().DeletedColumn.ToString();...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.