Wow, finally got it. I think my problem stemmed from the fact that I set the datasource of the datagrid to the dataset rather than binding it. Because I did it this way, the mapping name had to be set to the name of the table in the dataset that the datagrid was showing. Here's the code that...
I'm sorry, but I still can't figure this out. How would I made sure that "AdminSupplies" is in the TableStyles collection? I don't know how to use the debugger well. Thanks again.
I'm sorry, I meant to give you more acknowledgement in my last post for mentioning that. Now I'm just trying to figure out why I get that error when I get to that bolded line of code. Didn't mean to upset you, sorry if I did.
Ok well, that didn't work as I had hoped due to the dataset not following the datagrid when it was filtered, so now I'm simply trying to hide my autogenerated ID field by setting the field width to zero. Unfortunately when I do, I get the following error during runtime: "Object reference not...
[Resolved]Retrieving a single value from a dataset/Hiding a Column in a Datagrid
I know it's easier to do from the datagrid, but I'm trying to to acquire the value of basically a single field in a predefined tabled in my dataset by it's coordinates within the certain table. Is there any way to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.