How to loop data colum

knockyo

Well-known member
Joined
Sep 20, 2006
Messages
78
Programming Experience
1-3
i want to take below data at "txnComment" that i highlight.

after i select the column, i just need the take the data that hv value

picture show below:
dtrr6.jpg


hope expert help me, thx:)
 
For Each dr as DataRow In DirectCast(myDataGrid.DataSource, DataTable).Rows
If dr("txnComment") IsNot Nothing Then ...
 
sorry, i miss smth to 4get tell you all, that table is not a datagrid, tht is sql server database records..

Thx
 
i cannot using sql command to select the above txncomment, this is because the above data i already use stored procedure to generate. Eg:

select * from tblcomment where uniqueid='stored procedure (data above display)'

so i need use VB.net code to select the data of txncomment
 
select txnComment from tblcomment where uniqueid='stored procedure (data above display)' and txnCOmment IS NOT NULL
 
Back
Top