Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Add textbox in datarow in vb.net
kalu singh rao
Sep 25 2014 8:41 AM
1.1k
Reply
I want to add textbox in datarow every time when user add table in button click. I don't know how to add textbox in datarow ?
Any help will be appreciate. Thank you and check my code below.
Dim TempRow As DataRow, tb As New TextBox
Dim i As Integer = 0
tb.ID = "txtaddQty" + i.ToString()
tb.Width = Unit.Pixel("100")
tb.Height = Unit.Pixel("30")
tb.Style.Add("position", "relative")
tb.Style.Add("top", "5px")
tb.Style.Add("left", "10px")
TempRow = TempTabl.NewRow
TempRow(" ") = ""
TempRow("0ItemID") = ItemID
TempRow("LedgerName") = LedgerName
TempRow("SerialFrom") = SerialFrom
TempRow("SerialTo") = SerialTo
TempRow("Qty") = Qty
TempRow("Rate") = Rate
TempRow("AddQty") = //I want to add textbox is here //
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Sql connection doesn't open in vb.net
how i open dropdownlist automatically