Click here to Skip to main content
16,007,843 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralWord Wrapping with Draw String Pin
Chaos Machine7-Mar-05 12:52
Chaos Machine7-Mar-05 12:52 
GeneralRe: Word Wrapping with Draw String Pin
Christian Graus7-Mar-05 12:55
protectorChristian Graus7-Mar-05 12:55 
GeneralRe: Word Wrapping with Draw String Pin
Chaos Machine7-Mar-05 13:55
Chaos Machine7-Mar-05 13:55 
QuestionHow to save the state of TreeView Pin
ac_vbdeveloper7-Mar-05 11:04
ac_vbdeveloper7-Mar-05 11:04 
Generalvb .net and fox Pro Pin
Anonymous7-Mar-05 10:57
Anonymous7-Mar-05 10:57 
QuestionHow can I hide a column value from view in my Datagrid Pin
Lisana7-Mar-05 8:31
Lisana7-Mar-05 8:31 
AnswerRe: How can I hide a column value from view in my Datagrid Pin
Jim Matthews7-Mar-05 10:12
Jim Matthews7-Mar-05 10:12 
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Lisana7-Mar-05 10:36
Lisana7-Mar-05 10:36 
thanks, Jim..

Actually, I tried to use this code

DS.Tables(0).Columns("entity_id").ColumnMapping = MappingType.Hidden

but the problem is when I click the row and need to pass the entity_id column value to other form. then it gave me error "Specified argument was out of the range of valid values. Parameter name: columnIndex."

this is my function to get the value from the datagrid.

Public Function GetSelectedRows(ByVal dg As DataGrid) As System.Collections.ArrayList
Dim al As New ArrayList
Dim cm As CurrencyManager = Me.BindingContext(dg.DataSource, dg.DataMember)
Dim dv As DataView = CType(cm.List, DataView)
Dim idCol As Integer
idCol = 5
Dim i As Integer
For i = 0 To dv.Count - 1
If dg.IsSelected(i) Then
al.Add(dg.Item(i, idCol))
End If
Next
Return al

End Function

and the idCol = 5 is the column of entity_id.

Do you have any idea for this?

Thanks!

Lisa
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Jim Matthews8-Mar-05 7:05
Jim Matthews8-Mar-05 7:05 
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Lisana8-Mar-05 10:47
Lisana8-Mar-05 10:47 
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Anonymous9-Mar-05 20:44
Anonymous9-Mar-05 20:44 
AnswerRe: How can I hide a column value from view in my Datagrid Pin
westerdlyOne_void8-Mar-05 10:46
westerdlyOne_void8-Mar-05 10:46 
QuestionHow to access serial Com Port 1 for ASP.net / VB.NEt Pin
Member 11682817-Mar-05 4:55
Member 11682817-Mar-05 4:55 
AnswerRe: How to access serial Com Port 1 for ASP.net / VB.NEt Pin
Dave Kreskowiak7-Mar-05 7:07
mveDave Kreskowiak7-Mar-05 7:07 
General[ASP.NET / VB.NET] using Page Templates disables DataGrid events Pin
Mastakilla1237-Mar-05 0:57
Mastakilla1237-Mar-05 0:57 
GeneralRe: [ASP.NET / VB.NET] using Page Templates disables DataGrid events Pin
Mastakilla1237-Mar-05 4:02
Mastakilla1237-Mar-05 4:02 
QuestionHow to read a word under mouse cursor? Pin
RABEE SHAHEEN6-Mar-05 23:40
RABEE SHAHEEN6-Mar-05 23:40 
AnswerRe: How to read a word under mouse cursor? Pin
Dave Kreskowiak7-Mar-05 7:17
mveDave Kreskowiak7-Mar-05 7:17 
QuestionBitMap & Graphics, please HELP!? Pin
Acheto6-Mar-05 23:28
Acheto6-Mar-05 23:28 
Answerplease HELP!? Pin
Acheto8-Mar-05 8:02
Acheto8-Mar-05 8:02 
GeneralIs a Question like this Thread too BAD for this Forum? Pin
Acheto10-Mar-05 0:21
Acheto10-Mar-05 0:21 
GeneralTimetable scheduling algorithms Pin
Member 45821056-Mar-05 23:21
Member 45821056-Mar-05 23:21 
GeneralRe: Timetable scheduling algorithms Pin
Dave Kreskowiak7-Mar-05 1:12
mveDave Kreskowiak7-Mar-05 1:12 
GeneralProblem referencing COM+'s Web services via VS.NET Pin
twlong6-Mar-05 21:10
twlong6-Mar-05 21:10 
GeneralSnap-ins and Windows Service Pin
CSharpBala6-Mar-05 19:15
CSharpBala6-Mar-05 19: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.