I Have Created Connection Object, Dataadapter And Fill The Dataset But Afterwards I Am Unable To Display The Data In Textbox Or Label
Vb.net Display Data In Textbox Or Label Through Dataset
Collapse
X
-
Originally posted by jain19801I Have Created Connection Object, Dataadapter And Fill The Dataset But Afterwards I Am Unable To Display The Data In Textbox Or Label -
hi
u just do 1 thing just bind dsto textbox like
textbox2.text = ds.tables[0].rows[0][0].tostring();
acc to me it vl work 'd if its not working plz post ur question more clearly......
enjoy programming....
NavneetComment
-
Originally posted by hbxtlhxlike this:
TextBox tb;
tb.DataBindings .Add("Text", ds, "fieldname" );
i dnt think so coz firstly u have not created instance of text box
like
it should
textbox tb =new textbox();
'd then u cn write
tb.Text = ds.Tables[0].Rows[row][column].ToString();
okayComment
Comment