Advertisement
Advertisement
| 05.02.2008 at 04:47PM PDT, ID: 23373255 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: |
Public dgvCells as New SortedList(Of String, Long)
'-- Load Sorted List when you first enter the DataGrid (Not Datagrid must have rows)
If dgvCells.Count = 0 then
Dim rowCurr as DataGridViewRow = datagridview1.currentrow
Dim strColumnName as string
Dim dgvColumn as New datagridviewcolumn
Dim i as Int16 = 0
For i = 0 to rowCurr.Cells.count -1
dgvColumn = rowCurr.Cells(i).OwningColumn
if dgvColumn.IsDataBound then
strColumnName = dgvColumn.DataPropertyName
Else
strColumnName = dgvColumn.name
End If
dgvCells.Add(strColumnName, i)
Next
End If
'-- Get the Cell Value by ColumnName
Dim rowCurrent as DataGridViewRow = datagridview1.CurrentRow
Dim intColumnIndex as integer = Cint(dgvCells("CompanyName"))
Dim strCompanyName as string = Cstr(rowCurrent.Cells(intColumnIndex).Value)
|