Click here to Skip to main content
15,887,596 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: having trouble replacing Trademark and Registered symbol with Regex Pin
Luc Pattyn2-Feb-12 9:05
sitebuilderLuc Pattyn2-Feb-12 9:05 
QuestionADO.net Pin
Amanjot1-Feb-12 12:09
Amanjot1-Feb-12 12:09 
AnswerRe: ADO.net Pin
Eddy Vluggen1-Feb-12 12:21
professionalEddy Vluggen1-Feb-12 12:21 
QuestionCreate a unique Id for each row of table Pin
Seema Bawa1-Feb-12 8:19
Seema Bawa1-Feb-12 8:19 
AnswerRe: Create a unique Id for each row of table Pin
Simon_Whale1-Feb-12 12:16
Simon_Whale1-Feb-12 12:16 
JokeRe: Create a unique Id for each row of table Pin
Eddy Vluggen1-Feb-12 12:30
professionalEddy Vluggen1-Feb-12 12:30 
GeneralRe: Create a unique Id for each row of table Pin
Simon_Whale1-Feb-12 21:58
Simon_Whale1-Feb-12 21:58 
AnswerRe: Create a unique Id for each row of table Pin
RobCroll1-Feb-12 16:14
RobCroll1-Feb-12 16:14 
EDIT: Sorry I misread the question.
Could you iterate through the collection
VB
For i As Integer = 0 To table.count - 1
	Dim selected As Row = table.row(i)
	newTable.add(New Row(i, selected.FirstName, selected.LastName, Occupation))
Next

Alternatively if you are adding to existing table you could use a GUID
VB
For i As Integer = 0 To table.count - 1
	Dim selected As Row = table.row(i)
	newTable.add(New Row(Guid.NewGuid(), forstName, LastName, Occupation))
Next



- Use the database primary key and store in a column those width is 0.
- Some table rows have a tag property you can use to store the entity representing the record
- Some tables are bound directly to a data source, so by querying the selected row, you can access the unique Id.

For a more specific answer, you'll need to detail the scenario. At this stage we don't even know if your talking about a DataGrid, a DataTable or some other matrix type object.

"You get that on the big jobs."

QuestionCreate a unique Id for Rows Pin
Seema Bawa1-Feb-12 7:58
Seema Bawa1-Feb-12 7:58 
AnswerRe: Create a unique Id for Rows Pin
Eddy Vluggen1-Feb-12 8:16
professionalEddy Vluggen1-Feb-12 8:16 
QuestionOptional parameters cannot have structure types Pin
Clark Kent1231-Feb-12 5:53
professionalClark Kent1231-Feb-12 5:53 
AnswerRe: Optional parameters cannot have structure types Pin
Eddy Vluggen1-Feb-12 6:34
professionalEddy Vluggen1-Feb-12 6:34 
GeneralRe: Optional parameters cannot have structure types Pin
Clark Kent1231-Feb-12 7:16
professionalClark Kent1231-Feb-12 7:16 
GeneralRe: Optional parameters cannot have structure types Pin
Eddy Vluggen1-Feb-12 7:41
professionalEddy Vluggen1-Feb-12 7:41 
QuestionFrom Variant/double() to Double() Pin
PozzaVecia31-Jan-12 11:54
PozzaVecia31-Jan-12 11:54 
AnswerRe: From Variant/double() to Double() Pin
Eddy Vluggen1-Feb-12 9:47
professionalEddy Vluggen1-Feb-12 9:47 
GeneralRe: From Variant/double() to Double() Pin
PozzaVecia1-Feb-12 10:28
PozzaVecia1-Feb-12 10:28 
AnswerRe: From Variant/double() to Double() Pin
Wes Aday1-Feb-12 10:07
professionalWes Aday1-Feb-12 10:07 
GeneralRe: From Variant/double() to Double() Pin
PozzaVecia1-Feb-12 10:30
PozzaVecia1-Feb-12 10:30 
QuestionConvert MS Word doc to PDF Pin
ivo7531-Jan-12 5:58
ivo7531-Jan-12 5:58 
AnswerRe: Convert MS Word doc to PDF Pin
thatraja31-Jan-12 6:40
professionalthatraja31-Jan-12 6:40 
AnswerRe: Convert MS Word doc to PDF Pin
Abhinav S31-Jan-12 6:41
Abhinav S31-Jan-12 6:41 
QuestionHow can I avoid multi-threading? Pin
Rick McLeod30-Jan-12 19:44
Rick McLeod30-Jan-12 19:44 
AnswerRe: How can I avoid multi-threading? Pin
Simon_Whale31-Jan-12 1:18
Simon_Whale31-Jan-12 1:18 
GeneralRe: How can I avoid multi-threading? Pin
Rick McLeod31-Jan-12 5:34
Rick McLeod31-Jan-12 5:34 

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.