Click here to Skip to main content
16,015,973 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Export Data To Excel Pin
Mekong River16-Feb-06 20:27
Mekong River16-Feb-06 20:27 
QuestionWAN/LAN Pin
andylimjp15-Feb-06 16:59
andylimjp15-Feb-06 16:59 
AnswerRe: WAN/LAN Pin
Dave Kreskowiak16-Feb-06 1:22
mveDave Kreskowiak16-Feb-06 1:22 
QuestionXml + Listview + files Pin
ali426715-Feb-06 13:57
ali426715-Feb-06 13:57 
QuestionVB6 Enterprise edition version 6.0.81.76 crashing Pin
MeterMan15-Feb-06 13:44
MeterMan15-Feb-06 13:44 
AnswerRe: VB6 Enterprise edition version 6.0.81.76 crashing Pin
Dave Kreskowiak15-Feb-06 14:22
mveDave Kreskowiak15-Feb-06 14:22 
AnswerRe: VB6 Enterprise edition version 6.0.81.76 crashing Pin
Joshua Quick15-Feb-06 15:31
Joshua Quick15-Feb-06 15:31 
QuestionGet record info from a datagrid Pin
New_Coder15-Feb-06 11:52
New_Coder15-Feb-06 11:52 
I am coding in VB.net 2003
I have created a datagrid on the form called "Line Grid" and I am populating in the code through a sql statement. see below

How do I get the content of a specific row and colum in the grid? Big Grin | :-D


Dim MY_SQL As String, TMP1 As String
Dim DATABASE_NAME As String
Dim tblCrrncMngr As CurrencyManager = CType(BindingContext(CODE_DataSet.Tables.Item(CODE_TABLE)), CurrencyManager)

Dim MYDATACOL As New DataGridTextBoxColumn
LINEGrid.TableStyles.Clear()

DATABASE_NAME = DATA_PATH 'c:\quote.mdb"
CODE_TABLE = NEW_TABLE '"INMASTER"

MY_SQL = "SELECT * FROM " + NEW_TABLE

OleDbDataAdapterARMaster.SelectCommand.CommandText = MY_SQL
CODE_Data_Adapter = New OleDbDataAdapter(MY_SQL, CONNECT_STRING)
CODE_Data_Adapter.TableMappings.Add("Table", CODE_TABLE)

' Fill the DataSet.
CODE_DataSet.Clear()
CODE_Data_Adapter.Fill(CODE_DataSet)

With LINEGrid
.SetDataBinding(CODE_DataSet, CODE_TABLE)
.Refresh()
End With

With MYDATACOL
.MappingName = "QUOTE_NO"
.HeaderText = "QUOTE NUMBER 123"
.Width = 200
End With

With MY_TBL_Style
.MappingName = CODE_TABLE
'Set column styles
With .GridColumnStyles
.Add(New DataGridBoolColumn)
With .Item(0)
.MappingName = "COPY_LINE"
.HeaderText = "FLAG"
.Width = 50
.NullText = String.Empty
End With

.Add(New DataGridTextBoxColumn(tblCrrncMngr.GetItemProperties.Item(CODE_TABLE)))
With .Item(1)
.MappingName = "OPTION"
.HeaderText = "OPTION"
.Width = 100
.NullText = String.Empty
End With

.Add(New DataGridTextBoxColumn(tblCrrncMngr.GetItemProperties.Item(CODE_TABLE)))
With .Item(2)
.MappingName = "QUOTE_LINE_NO"
.HeaderText = "LINE NUMBER"
.Width = 100
.NullText = String.Empty
End With
End With
End With

LINEGrid.TableStyles.Add(MY_TBL_Style)


AnswerRe: Get record info from a datagrid Pin
KreativeKai16-Feb-06 3:21
professionalKreativeKai16-Feb-06 3:21 
GeneralRe: Get record info from a datagrid Pin
New_Coder16-Feb-06 11:48
New_Coder16-Feb-06 11:48 
GeneralRe: Get record info from a datagrid Pin
KreativeKai17-Feb-06 2:10
professionalKreativeKai17-Feb-06 2:10 
Questionhow to use EOF or BOF in vb.net Pin
haripaddu15-Feb-06 11:21
haripaddu15-Feb-06 11:21 
AnswerRe: how to use EOF or BOF in vb.net Pin
KaptinKrunch15-Feb-06 11:29
KaptinKrunch15-Feb-06 11:29 
GeneralRe: how to use EOF or BOF in vb.net Pin
haripaddu15-Feb-06 11:38
haripaddu15-Feb-06 11:38 
GeneralRe: how to use EOF or BOF in vb.net Pin
haripaddu15-Feb-06 11:43
haripaddu15-Feb-06 11:43 
GeneralRe: how to use EOF or BOF in vb.net Pin
mayhem_rules15-Feb-06 17:21
mayhem_rules15-Feb-06 17:21 
QuestionUsing setFilePointer API Pin
IH8Microsoft15-Feb-06 10:18
IH8Microsoft15-Feb-06 10:18 
AnswerRe: Using setFilePointer API Pin
Dave Kreskowiak15-Feb-06 10:57
mveDave Kreskowiak15-Feb-06 10:57 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 11:32
IH8Microsoft15-Feb-06 11:32 
GeneralRe: Using setFilePointer API Pin
Dave Kreskowiak15-Feb-06 13:03
mveDave Kreskowiak15-Feb-06 13:03 
AnswerRe: Using setFilePointer API Pin
progload15-Feb-06 11:49
progload15-Feb-06 11:49 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 11:58
IH8Microsoft15-Feb-06 11:58 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 12:13
IH8Microsoft15-Feb-06 12:13 
GeneralRe: Using setFilePointer API Pin
progload15-Feb-06 12:37
progload15-Feb-06 12:37 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 12:51
IH8Microsoft15-Feb-06 12:51 

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.