How to do a movenext into your data???
-
Hi, How can I create a move next command in my dataset???
Dim DS As New DataSet TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME")
This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one. can you give me some solution? Thanks a lot in advance. -
Hi, How can I create a move next command in my dataset???
Dim DS As New DataSet TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME")
This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one. can you give me some solution? Thanks a lot in advance.Hi Meki, what you are trying to implement is a enumerator. You could use the enumerator of the DataRowCollection.
// get the enumerator IEnumerator oEnum = DS.Tables[0].Rows.GetEnumerator(); // use it while(oEnum.MoveNext()) { // get current row DataRow rowCurrent = oEnum.Current as DataRow; // get the value Textbox1.Text = rowCurrent.Item["ITEM_NAME"].ToString(); }
I hope this helps you. Regards SebastianIt's not a bug, it's a feature! Me in Softwareland.
-
Hi, How can I create a move next command in my dataset???
Dim DS As New DataSet TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME")
This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one. can you give me some solution? Thanks a lot in advance.