Click here to Skip to main content
15,889,176 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to download a file Pin
Nika Asgari15-Jun-08 22:36
Nika Asgari15-Jun-08 22:36 
AnswerRe: how to download a file Pin
Rupesh Kumar Swami16-Jun-08 0:15
Rupesh Kumar Swami16-Jun-08 0:15 
QuestionHow to set project path to a folder Pin
charanbura15-Jun-08 22:24
charanbura15-Jun-08 22:24 
AnswerRe: How to set project path to a folder Pin
Rupesh Kumar Swami16-Jun-08 0:32
Rupesh Kumar Swami16-Jun-08 0:32 
GeneralRe: How to set project path to a folder Pin
charanbura16-Jun-08 17:36
charanbura16-Jun-08 17:36 
AnswerRe: How to set project path to a folder Pin
Ashfield16-Jun-08 4:33
Ashfield16-Jun-08 4:33 
GeneralRe: How to set project path to a folder Pin
charanbura16-Jun-08 17:38
charanbura16-Jun-08 17:38 
QuestionCheck box getting unchecked while sorting column in datagridview Pin
hisuman10015-Jun-08 20:29
hisuman10015-Jun-08 20:29 
Check box column getting unchecked when I am sorting column in datagridview.
Can any one help me?

Regds.
Suman


Imports System
Imports System.Data.SqlClient
Public Class Form1
Dim str As String
Dim con As SqlConnection
Dim da As SqlDataAdapter
Dim ds As New DataSet
Dim dt As DataTable
Dim dv As DataView
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
str = "Integrated Security=SSPI; User Id=sa;Initial Catalog=MAS08; Data Source = suman"
con = New SqlConnection(str)
con.Open()
str = "select * from unitmaster"
da = New SqlDataAdapter(str, con)
da.Fill(ds, "unitmaster")
dt = ds.Tables(0)
dv = New DataView(dt)
Dim colCheckbox As New DataGridViewCheckBoxColumn()
' Size the column width so it is wide enough to display the header
colCheckbox.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader
colCheckbox.ThreeState = False
colCheckbox.TrueValue = 1
colCheckbox.FalseValue = 0
colCheckbox.IndeterminateValue = System.DBNull.Value
colCheckbox.DataPropertyName = "Checkbox"
colCheckbox.HeaderText = "Checkbox"
colCheckbox.Name = "Checkbox"
'colCheckbox.ReadOnly = True
dgv.Columns.Add(colCheckbox)
dgv.DataSource = dv
End Sub
End Class
AnswerRe: Check box getting unchecked while sorting column in datagridview Pin
BDEz (Member 3919223)16-Jun-08 3:14
BDEz (Member 3919223)16-Jun-08 3:14 
Questionapp config... Pin
Subjugate15-Jun-08 20:23
Subjugate15-Jun-08 20:23 
AnswerRe: app config... Pin
Ashfield15-Jun-08 21:10
Ashfield15-Jun-08 21:10 
GeneralRe: app config... Pin
Subjugate15-Jun-08 21:44
Subjugate15-Jun-08 21:44 
GeneralRe: app config... Pin
Ashfield15-Jun-08 22:06
Ashfield15-Jun-08 22:06 
GeneralRe: app config... Pin
Subjugate16-Jun-08 1:16
Subjugate16-Jun-08 1:16 
GeneralRe: app config... Pin
Ashfield16-Jun-08 1:18
Ashfield16-Jun-08 1:18 
GeneralRe: app config... Pin
Subjugate16-Jun-08 1:26
Subjugate16-Jun-08 1:26 
GeneralRe: app config... Pin
Ashfield16-Jun-08 4:27
Ashfield16-Jun-08 4:27 
GeneralRe: app config... Pin
Subjugate16-Jun-08 17:27
Subjugate16-Jun-08 17:27 
GeneralRe: app config... Pin
Ashfield16-Jun-08 21:16
Ashfield16-Jun-08 21:16 
QuestionSetting background color or image to individual cells in a data Grid view? Pin
Benny_Lava15-Jun-08 20:05
Benny_Lava15-Jun-08 20:05 
AnswerRe: Setting background color or image to individual cells in a data Grid view? Pin
Ashfield15-Jun-08 21:16
Ashfield15-Jun-08 21:16 
QuestionGeneric GDI+ Error in different login Pin
nishkarsh_k15-Jun-08 19:17
nishkarsh_k15-Jun-08 19:17 
AnswerRe: Generic GDI+ Error in different login Pin
Mark Churchill15-Jun-08 20:15
Mark Churchill15-Jun-08 20:15 
GeneralRe: Generic GDI+ Error in different login Pin
nishkarsh_k16-Jun-08 21:54
nishkarsh_k16-Jun-08 21:54 
GeneralRe: Generic GDI+ Error in different login Pin
Mark Churchill16-Jun-08 22:15
Mark Churchill16-Jun-08 22:15 

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.