Jump to content
Sign in to follow this  
mus3na

Textbox Binding To Dataset Row Number X

Recommended Posts

Sapa tau camana aku nak buat data binding antara text box dengan datasource (tanpa datagrid) untuk row number tertentu. aku boleh bind dengan arahan dibawah, cuma masalahnya dia auto bind ke row 0. So masalahnya aku tak dapat carik syntax untuk membolehkan aku bind textbox ni ke dataset row number X (X is integer, i.e; 1,2,3,4,5,6,7,8,9).

Permasalahan ini untuk VB.NET 2008 run for .NET Framework 3.5

syntax yg aku gunakan skarang is:

TextBox1.DataBindings.Add("text", Dataset.Tables("TableName"), "ColumnName")

code ni boleh bind text box ke column yg aku nak, cuma dia gi ke row 1, camana aku nak tukar ke row lain.

Urgent!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...