473,396 Members | 2,020 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,396 software developers and data experts.

In Form Load Grid is not filling

mafaisal
142 100+
hello Experts

I am Using VB.Net2005

See My Code

Expand|Select|Wrap|Line Numbers
  1. Private Sub Format_Grid()
  2.          DstMax.Clear()
  3.         StrSQL = "Select a.SlNo,a.CardID,b.Name,a.MaxLimit From CompanyLimits a,Card b," & _
  4.                  "CompanySub c Where a.CompanySubID = c.Id And a.CardId = b.Id And a.CompanySubID = " & Val(TxtId.Text) & " Order By SlNo"
  5.         Dap = New OleDb.OleDbDataAdapter(StrSQL, Con)
  6.         Dap.Fill(DstMax, "DstMax")
  7.         For i As Integer = 0 To DstMax.Tables(0).Rows.Count - 1
  8.             With DGView2
  9.                 .Rows.Add()
  10.                 .Rows(i).Cells(0).Value = DstMax.Tables(0).Rows(i).Item(0)
  11.                 .Rows(i).Cells(1).Value = DstMax.Tables(0).Rows(i).Item(1)
  12.                 .Rows(i).Cells(2).Value = DstMax.Tables(0).Rows(i).Item(2)
  13.                 .Rows(i).Cells(3).Value = DstMax.Tables(0).Rows(i).Item(3)
  14.             End With
  15.         Next
  16.     End Sub
  17.  
  18.  
Tis Sub is I Call in form Load Event Then Grid is not Filling

But in Form Activate Event we call Grid Fill

I want This Sub in When Form Load Only

Also Using Datasource No Problem

But I Want this Way, Not using datasource

Any soln


Faisal
Feb 22 '08 #1
1 1092
mafaisal
142 100+
Hello Experts

Any Soln To This Problem,

Faisal
Feb 24 '08 #2

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

Similar topics

1
by: jobi.joy | last post by:
I have a requirement of having the capability of offline form filling for my website.So users can some way download the form and can fill out in offline mode. Any standard way to do this. I am...
1
by: Hananiel | last post by:
I have a User control that I load dynamically into a Form. The designer has no property to let me dock it. How do i Dock it or get it to stretch out to fill. Setting this.Dock = DockStyle.Fill; in...
3
by: MajorTom | last post by:
Hello everybody, I need help on how to use the same datase in two different form, this is the scenario: at the first form I load a big dataset (ds1) for short, but I not want to load it again...
8
by: TM | last post by:
I have a small application that displays records from an access mdb into two datagrids and am looking to see if it is possible to speedup the loadtime somehow. In my formload I am filling my...
10
by: Sarah Smith | last post by:
Hello, I am a bit of a newbie to VB.NET, but not totally new. I took the plunge recently and decided (along with my colleagues), to try to convert/port a VB6 client/server app to .Net. (I'm...
10
by: B-Dog | last post by:
I want to run something once my form in completely loaded and drawn but running at the end of form load doesn't do I guess cause of the large dataset fill and the form isn't fully loaded. Where...
2
by: Pascal | last post by:
bonjour/hello I have an application with several forms : form1 is loaded at first. Man makes some staff (filling text box, clicking radiobutton) in this window and then click nextbutton and so on...
10
by: Anil Gupte | last post by:
I am playing a Windows Media File which is protected by their DRM. I want to be able to automatically fill in the form asking for payment with my saved parameters. Is there any way to do this? ...
4
by: tomKeating | last post by:
First I am new to both python and wxPython. I have developed a couple of applications for myself with Paradox, but it is time to move on. I am having difficulty creating a solid background for a...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.