473,325 Members | 2,872 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.

MSFlexGrid and ColAlignment

I do not know how to get certain cells to align left. No matter which ColAlignment I specify, the grid always shows me the text field centered.
Also, I tried having the alignment come before the entering the text and after.
What am I doing wrong? Please help me.

The code is as follows:
Expand|Select|Wrap|Line Numbers
  1. grd1.Rows = iRow + 1
  2. grd1.ColAlignment(iCol) = flexAlignLeftTop
  3. grd1.TextMatrix(iRow, iCol) = "Total Licenses"
  4. grd1.ColWidth(iCol) = grd1.Width * 0.4
  5.  
Platform: Windows 2000
Language: VB6
Source Code: See snippet above
Input Used: none
Error Codes: none
Dec 20 '07 #1
1 9066
Dököll
2,364 Expert 2GB
I do not know how to get certain cells to align left. No matter which ColAlignment I specify, the grid always shows me the text field centered.
Also, I tried having the alignment come before the entering the text and after.
What am I doing wrong? Please help me.

The code is as follows:
Expand|Select|Wrap|Line Numbers
  1. grd1.Rows = iRow + 1
  2. grd1.ColAlignment(iCol) = flexAlignLeftTop
  3. grd1.TextMatrix(iRow, iCol) = "Total Licenses"
  4. grd1.ColWidth(iCol) = grd1.Width * 0.4
  5.  
Platform: Windows 2000
Language: VB6
Source Code: See snippet above
Input Used: none
Error Codes: none
Hello, learningvbnet!

Can you go into it a little more? I took one look and could not understand what you are asking. You may be savvier in this than I am.

If you give me added info perhaps I can try to help.

Why do you need cells to be aligned? Looks like there are no errors, are there data in the cells upon the time you are trying to align...

...Nice bit of code, please add the rest of it also...
Might get better hits that way if one can run it:-)

Also is this related to both vb and vb.net? You may need to look in the .net area also for further support.

In a bit!

Dököll
Dec 21 '07 #2

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

Similar topics

5
by: MouseHart | last post by:
I've written a simple program in VB 6.0 to list all my MP3 files. To show them on the screen I used an MSFlexGrid named TextGrid (which is not associated with any table or text file) in the...
0
by: Ed | last post by:
Hi, I am using an MSflexgrid in my c# code. I have a strange problem. My MSflexgrid has only 1 column. Now the data in that column can be long. WIth just 1 column the MSflexgrid does not show...
1
by: PVS | last post by:
Hi, I am new to VC++ 7.0. I want to use MSFlexGrid in my dialog based MFC project in VC++ 7.0 (in VS ..NET IDE). I added the MSFlexGrid control into my resource editor toolbox and I dragged and...
0
by: Martin K | last post by:
Hello all..thanks for everyone's advice regarding my SHBrowseForFolder API problem, I was able to put together a public class that runs great! But I have another migration headache regarding the...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
1
by: schapopa | last post by:
Hi, I have a MSFlexGrid control on the SSTab and now I am trying to make it editable. I got some example on the net that explains how to achive that. So I have a text box that appears over the...
1
by: zoneal | last post by:
Hi, I am involved in the process of migrating vb(6.0) application to vb.net. My application contains only vb controls namely MSFLEXGRID. I want to migrate my application to vb.net completely...
1
by: Steven | last post by:
I develop the application which contains MSFlexGrid to display data. When I try to fill the grid with the text data, I want to adjust the column width so that the width is adjusted to the maximum...
5
by: Ishmael | last post by:
Hi Is Been a 3 Yrs Now (I Still trying to do this) Please help me to do this with Visual Basic 6.0 using Msflexgrid Let say you are the Principal . You have 10 educators and 5 class (Grades)...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
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.