loop through a bindingsource
-
does anyone know how to loop through a binding source? so far i have been working with the code foreach (DataRowView invoiceRow in invoicebindingsource) { } but what if i only want to check one column? I am also a little unclear on how to address that info in the cell i am currently looking at Thanks for any help you can give
-
does anyone know how to loop through a binding source? so far i have been working with the code foreach (DataRowView invoiceRow in invoicebindingsource) { } but what if i only want to check one column? I am also a little unclear on how to address that info in the cell i am currently looking at Thanks for any help you can give
-
test or manipulate messagebox.show(something.tostring()) i am also trying to figure out how to do something like if something.tostring() containes stringtext { replace something.tostring with stringreplace }
crash893 wrote:
test or manipulate
so if replace "looking at" in your first post with "test or manipulate".....
crash893 wrote:
I am also a little unclear on how to address that info in the cell i am currently testing
I struggle to understand your posts. All I can do is guess that you are asking how to access the "columns" in the
DataRowView
. I really hope this is a school project. Anyway, I recommend you "read" some documentation on DataRowView from the MSDN Library which is available online from Microsoft. Also there are many MANY articles here on CodeProject that contain sample code for working with Database related issues. I would bet some of them show how to access columns of a DataRowView.