dimanche 19 avril 2015

how to reference datatable names

Rather than referencing 0 and 1 for my rows. How do i reference the name of the columns in my data table?



txtCustomerRef.Text = dobj.GetCustomerData(selectedValue).Rows[0][0].ToString();
txtCustomerName.Text = dobj.GetCustomerData(selectedValue).Rows[1][1].ToString();

Aucun commentaire:

Enregistrer un commentaire