Question about Computers & Internet

4 Answers

Setting Datagrid runtime in Visual Basic

I have set all the column by Data is not appearing in Grid. Please help me if any one

Code :

Set DataGrid1.DataSource = rs
DataGrid1.Columns(0).Caption = "Ledger Name"
DataGrid1.Columns(0).Width = 1200
DataGrid1.Columns(0).DataField = "rs.ledger"
DataGrid1.Columns(1).Caption = "Amount"
DataGrid1.Columns(1).DataField = "rs.clamt"
Regards,
Raj

Posted by on

×

4 Answers

  • Level 1:

    An expert who has achieved level 1.

    MVP:

    An expert that got 5 achievements.

    Habit-Forming:

    Visited the website for 3 consecutive days.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Contributor
  • 29 Answers

Don't use Data Controls
Don't use binding
Use pure ADO code instead of the above
Use the flexgrid (or the free SGrid2) instead
If you are using VB6, get help in these two forums-
http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier
http://www.vbforums.com/forumdisplay.php?3-Database-Development
I am in the VB6 one often, so I will chip in to help

Rob

Posted on Jan 16, 2017

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Master:

    An expert who has achieved Level 3.

  • Master
  • 353 Answers

This website can help you www.rsgoldfast.com
They serve good high efficiency, safe and convenient transaction, you can go to experience
The price is certainly the cheapest
There is also often very affordable activity

Posted on Jan 05, 2017

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that has over 10 points.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 17 Answers

I have found a C# Data Grid Tutorial for you as reference. It is easy to understand.

Posted on Apr 24, 2014

  • Level 1:

    An expert who has achieved level 1.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 2 Answers

I think you are missing this at the end:

DataGrid1.DataBind()

Posted on Sep 06, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

System error &H80040111 (-2147221231)


Hi,
Try installing your .NET frameworks and other Windows related runtimes.Also try re-installing the complete Microsoft Office package

Jan 28, 2012 | Microsoft Office Computers & Internet

1 Answer

I am using a9cad and the software will not run. It comes up with a runtime error 6 overflow. I am using windows xp


Glad to HELP YOU!

This is a boring error to track down. It is caused by several reasons [some obvious, some not so obvious...].
Usually this error is caused by trying to store a variable that is too small for the previously created byte field for that variable.
It [the error] comes from a malfunction of the Visual Basic.
TO FIX IT: are some things that might be done to get rid of that runtime error 6 overflow.
# clean your registry using a REGISTRY CLEANER software like CCleaner [from HERE];
# reboot your machine
# go on Visual Basic website and perform an update [HERE];
# download the FIX [update file] & install it;
# follow the indications that will appear on the screen during the installation and once is DONE perform a RESTART.

Now it should work fine.
Some references you will find HERE.


GOOD LUCK!

Apr 07, 2011 | Computers & Internet

1 Answer

Microsoft Visual C++Runtime Library


hello there
please follow this link for a explanation and a fix for this ok
  1. "Microsoft Visual C++ Runtime Library Runtime Error" error message ... Describes the error messages that you receive after you install Office XP or an ... "Microsoft Visual C++ Runtime Library Runtime Error" error message after you ...support.microsoft.com/kb/307817

Sep 19, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

A nice datagrid in vb.net


You'd better me more familiar with the C# DataGrid Header. I reckon that this would do you some help.

Nov 29, 2008 | Computers & Internet

1 Answer

VISUAL BACSIC 6.0


Using ActiveX Components in Visual Basic 6.0

' Dim as New:
Dim ftp As New ChilkatFtp2

' Alternatively, Dim and instantiate later:
Dim x as ChilkatFtp2
Set x = New ChilkatFtp2
' Note: The WithEvents can only appear in the declaration
' section of a module, and cannot be local to a procedure.
' Also, it cannot be used with the "New" keyword.
' The object creation must occur in a separate step, typically
' in the Form load.
Dim WithEvents ftp As ChilkatFtp2
Private Sub Form_Load()
Set ftp = New ChilkatFtp2
End Sub
Private Sub ftp_AbortCheck(abort As Long)
End Sub
Private Sub ftp_PutProgress(ByVal pctDone As Long)
End Sub

Aug 21, 2008 | Computers & Internet

1 Answer

Flex Grid


The most common multidimensional array, the two dimensional array table, is best presented to your users in row and column format. The grid control offers a convenient way for you to display table data to your users. The users can navigate the table's values using scrollbars. Therefore, the grid control does not have to be as large as the table, because the grid control automatically displays scrollbars.
To add the flex grid control to your toolbox, select project and components. Add the flex grid control:
lesson97-1.jpg Once it is added, you will see the yellow flex grid control in your toolbox:
lesson97-2.jpg When you place the grid control on your form, you will have to resize it before the control takes on a tabular appearance. As you expand the size of the control, it does not look to much like a table. The problem is that the table's default number of rows and columns are two. To fix this problem, you must configure the rows and columns in the properties window:
lesson97-3.jpg lesson97-4.jpg lesson97-5.jpg The grid control supports fixed rows and columns. These refer to rows and columns in a grid control that do not scroll when the user clicks the scrollbars. The fixed rows and columns provides labels that describe the data. The fixed rows and columns are often called row and column headers.
lesson97-6.jpg When working with the grid control, much code is needed to provide the grid with functionality. Call statements are used to break the code required by the grid control into smaller, more manageable procedures. This is referred to as modular programming (which refers to the practice of placing code with a single purpose in a general subroutine procedure and then calling the code from a second procedure.)
Here is the code for the form load procedure (this example is based on the computer disk example used in the last lesson)


Private Sub Form_Load()
Call SizeCells
Call CenterCells



grdGrid.Row = 0
grdGrid.Col = 1
grdGrid.Text = "Single Sided; Low Density "
grdGrid.Col = 2
grdGrid.Text = "Double Sided; Low Density"
grdGrid.Col = 3
grdGrid.Text = "Singled Sided; High Density"
grdGrid.Col = 4
grdGrid.Text = "Double Sided; High Density"

grdGrid.Row = 1
grdGrid.Col = 0
grdGrid.Text = "3 1/2 inch"
grdGrid.Col = 1
grdGrid.Text = "$2.30"
grdGrid.Col = 2
grdGrid.Text = "$2.75"
grdGrid.Col = 3
grdGrid.Text = "$3.20"
grdGrid.Col = 4
grdGrid.Text = "$3.50"



grdGrid.Row = 2
grdGrid.Col = 0
grdGrid.Text = "5 1/4 inch"
grdGrid.Col = 1
grdGrid.Text = "$1.75"
grdGrid.Col = 2
grdGrid.Text = "$2.10"
grdGrid.Col = 3
grdGrid.Text = "$2.60"
grdGrid.Col = 4
grdGrid.Text = "$2.95"

End Sub
Notice how the form load procedure is used to populate the cells in the grid control. To control cell size and cell alignment, two smaller procedures are created and each procedure is called by the form load procedure.


Private Sub SizeCells()
Dim intColumn As Integer

grdGrid.ColWidth(0) = 1100

For intColumn = 1 To 4
grdGrid.ColWidth(intColumn) = 2200
Next intColumn

End Sub

Private Sub CenterCells()
Dim intColumn As Integer

For intColumn = 1 To 4
grdGrid.ColAlignment(intColumn) = flexAlignCenterCenter
Next intColumn

End Sub

Notice that the size and alignment procedures are only applied to columns 1 through 4. Column 0, which is a fixed column reserved for labels, is not formatted using either of the above two procedures.
Here is the final result:
lesson97-7.jpg

Mar 26, 2008 | Computers & Internet

2 Answers

Howto load data to datagrid using visual basic 2005 and sql 200


May I suggest providing us with the programming language enviroment, which you're using, as in, Visual Basic or something, that way, I think it would be easier for the experts to give you an answer.

Here is a helpful link about Databases, but it's for Visual Basic Express Edition 2008
http://msdn2.microsoft.com/en-gb/express/aa718391.aspx


The best of luck with your project.

Mar 19, 2008 | Computers & Internet

1 Answer

Code for visual basic


PLEASE SEND ME ONE VB SOFTWARE WITH CODING

Feb 19, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

222 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

98762 Answers

David Payne
David Payne

Level 3 Expert

14037 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...