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

array as datasource to datagridview in vb.net.

hi,

how to assign a array as datasource to datagridview in vb.net.


my code is

Dim intarray(mblndigital_inputs) As Integer
mblndigital_inputs.Copyto(intarray, 0)
Array.Reverse(intarray)

i want to assign intarray to datagridview control.



and another one is suppose is there 40 values in that array

then 16 values are displayed in single row

another 16 values are goes to next row

else are goes to next row


each value is in seperate cell

for example array values are 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19, 20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ,37,38,39,40

first row contains 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1

second row contains 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17

third row contains 40 39 38 37 36 35 34 33
Oct 6 '08 #1
0 1192

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

Similar topics

2
by: Pieter | last post by:
Hi, I'm using a DataGridView with a DataGridViewCheckBoxColumn. When the users checks or unchecks the checkbox, some actions have to happen in the underlying DataSource and other objects. But...
8
by: George | last post by:
Hi, I have been trying to see if I can do the following: 1. Create a DataGridView 2. Create 2 columns in the DataGridView (1 textbox and the other combobox) 3. Create a DataTable containing...
1
by: Steve | last post by:
I have a string arrary that i wish to display in a datagridview but when i set the datasource to the array the resulting datagridview gives me the length of the stings not the actual strings. How...
6
by: Paulers | last post by:
Hello, I have a string that I am trying to add each char to a datatable row. for example if I have a string that looks like "abcdefg", I would like to break it up into an array of characters...
0
by: Mark Jerde | last post by:
VS 2005 SP1. Googled without success. I have an array of structs, and some of the elements are arrays of structs. E.g., ------------------------------------- public struct foobar { public int...
0
by: lorentz | last post by:
Goo day. I'm working on a C# application and on this particular form, I have a datagridview control that is bounded to a datasource on load. I've implement a drag-drop event to the datagridview,...
0
by: LeguMan | last post by:
Hi all, Is it possible to link a datagridview to a two dimension array ? Each time the array is updated, the datagridview would be updated as well ? Do I have to use the array as datasource ?...
1
by: weird0 | last post by:
I am assigning an arrlist to the datasource property of the datagridview. In short, i want to update the datagridview. But the moment, i assign it. The application crashes. It does not display the...
3
by: bharathi228 | last post by:
hi, how to assign a array as datasource to datagridview in vb.net. my problem is iam having an array with 60 values
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.