Click here to Skip to main content
15,885,366 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: New to VB. Help needed. Pin
gjx_junxian19897-Jul-09 6:31
gjx_junxian19897-Jul-09 6:31 
GeneralRe: New to VB. Help needed. Pin
Christian Graus7-Jul-09 6:34
protectorChristian Graus7-Jul-09 6:34 
GeneralRe: New to VB. Help needed. Pin
gjx_junxian19897-Jul-09 6:36
gjx_junxian19897-Jul-09 6:36 
AnswerRe: New to VB. Help needed. Pin
chilinhhacker13-Jul-09 18:31
chilinhhacker13-Jul-09 18:31 
QuestionConvert String DataType To Form Object Pin
faravani7-Jul-09 3:12
faravani7-Jul-09 3:12 
AnswerRe: Convert String DataType To Form Object Pin
Christian Graus7-Jul-09 3:20
protectorChristian Graus7-Jul-09 3:20 
AnswerRe: Convert String DataType To Form Object Pin
Anoop Brijmohun7-Jul-09 22:32
Anoop Brijmohun7-Jul-09 22:32 
QuestionArray declaration and asigning value of array to combobox Pin
KIDYA7-Jul-09 1:27
KIDYA7-Jul-09 1:27 
Hello Experts!!

I am declaring one array (having size 10) as an integer and bind array data to grid combobox.It works well but in combobox it shows values as well as zeros....means if array contains 3 values then remaining values shows zero(remaining 7).
How to taggle with this? Combo shows like this->1,2,3,0,0,0,0,0,0,0...I dont want that zeros

My code is

<pre>Dim o As New design
Dim i As Integer = 0
Dim rowArray As String()
Dim no(10) As Integer //Declaration
rssearch = New ADODB.Recordset
rssearch.Open("select srno from design", con, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
While Not rssearch.EOF
o = New design
o.dsrno = rssearch.Fields("srno").Value

Dim row1() As String = {o.dsrno}
Dim rows() As Object = {row1}

For Each rowArray In rows
no(i) = rowArray(0) // Assign value one by one
i = i + 1
Next rowArray


o = Nothing
o = New design
rssearch.MoveNext()
'i = i + 1
End While

CType(dgvbottom.Columns(8), DataGridViewComboBoxColumn).DataSource = no // Display values in combo

AnswerRe: Array declaration and asigning value of array to combobox Pin
Christian Graus7-Jul-09 1:35
protectorChristian Graus7-Jul-09 1:35 
AnswerRe: Array declaration and asigning value of array to combobox Pin
Luc Pattyn7-Jul-09 1:38
sitebuilderLuc Pattyn7-Jul-09 1:38 
GeneralRe: Array declaration and asigning value of array to combobox Pin
KIDYA7-Jul-09 2:22
KIDYA7-Jul-09 2:22 
QuestionEdit and Delete option with gridview Pin
Member 45142186-Jul-09 11:30
Member 45142186-Jul-09 11:30 
AnswerRe: Edit and Delete option with gridview Pin
Mycroft Holmes6-Jul-09 19:48
professionalMycroft Holmes6-Jul-09 19:48 
AnswerRe: Edit and Delete option with gridview Pin
helelark1236-Jul-09 19:56
helelark1236-Jul-09 19:56 
QuestionInfopath: help with implementing code Pin
corbetlp6-Jul-09 4:55
corbetlp6-Jul-09 4:55 
AnswerRe: Infopath: help with implementing code Pin
Eddy Vluggen7-Jul-09 3:48
professionalEddy Vluggen7-Jul-09 3:48 
Questionbios date/time Pin
vishal lele6-Jul-09 1:27
vishal lele6-Jul-09 1:27 
AnswerRe: bios date/time Pin
dan!sh 6-Jul-09 1:57
professional dan!sh 6-Jul-09 1:57 
AnswerRe: bios date/time Pin
Henry Minute6-Jul-09 11:57
Henry Minute6-Jul-09 11:57 
Questionbind data from database to datagridview combobox Pin
KIDYA6-Jul-09 1:25
KIDYA6-Jul-09 1:25 
AnswerRe: bind data from database to datagridview combobox Pin
dan!sh 6-Jul-09 2:04
professional dan!sh 6-Jul-09 2:04 
GeneralRe: bind data from database to datagridview combobox Pin
KIDYA6-Jul-09 2:57
KIDYA6-Jul-09 2:57 
QuestionConcerning XSDs.... Pin
LostMonkey6-Jul-09 0:50
LostMonkey6-Jul-09 0:50 
AnswerRe: Concerning XSDs.... Pin
Rozis7-Jul-09 6:54
Rozis7-Jul-09 6:54 
QuestionAdding a Unbound Image Column to Datagrid Pin
Member 44205345-Jul-09 22:24
Member 44205345-Jul-09 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.