Textbox VS DATASET
-
Hello How can i put the data of my dataset into my multiline textboxe please help Thanks in advance
Assaf
Loop through each row of the dataset, add it to a StringBuilder and then set the Text property on the textbox to the ToString() output of the StringBuilder. Why wouldn't you just display the dataset in a datagrid?
Scott Dorman
Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
-
Hello How can i put the data of my dataset into my multiline textboxe please help Thanks in advance
Assaf
Hi there are Tow ways to do that but in both ways u should bind each TextBox alone The First way
TextBox1.DataBindings.Add("Text", DataSetName, "TableName1.ColumnName1")
NumericUpDown1.DataBindings.Add("Value", DataSetName, "TableName1.ColumnName2")And The 2nd way
Dim NewBind As New Binding("Text", DataSetName, "TableName1.ColumnName3")
TextBox1.DataBindings.Add(NewBind)where:
"Text"
and"Value"
is the Property that u want to bind your data to as u see you should pass it as textDataSetName
is your DataSet"TableName.ColumnName"
is Your DataMember Excuse my English :-O