i want to get the columnname of an dataset, but without the datatype attached. The dataset is filled by the readxml-method and the columnname looks like this: defaultUser_text My xml-file contains this: <defaultUser>admin</defaultUser>
Is there a way to rip off the _text or do i have to cut it the dirty way, manually
Ya, you can simple call the column name that way. In order to get rid of that u can use the "String.split" method to split the back part off and take the front one.
its better not to rip off the text this way, in future maybe u need some validation of checking on the type u can still used the "text" as a sense of identification on coding.
ahmedilyas
Posted: Visual C# General, How to get names of Columns without datatype?