Hi,
You can use simple binding to bind dataset to the label.
DataSet dataset = new DataSet();
dataset.Tables.Add("datatable01");
dataset.Tables["datatable01"].Columns.Add("col01");
dataset.Tables["datatable01"].Columns.Add("col02");
dataset.Tables["datatable01"].Columns.Add("col03");
dataset.Tables["datatable01"].Rows.Add("22", "bb", "2b");
dataset.Tables["datatable01"].Rows.Add("11", "aa", "1a");
dataset.Tables["datatable01"].Rows.Add("33", "cc", "3c");
label1.DataBindings.Add("Text", dataset.Tables["datatable01"], "col01", true, DataSourceUpdateMode.OnPropertyChanged);
Control.DataBindings Property
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.databindings.aspx
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.