关于datagridview的问题 [英] Question about datagridview

查看:95
本文介绍了关于datagridview的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,
我的问题很难解决,请解决
我将一个Csv文件加载到数据集中,并在datagridview中显示它们

我想从所有列中替换通配符,例如-replace(,","/");

但是,datagridview不会选择它们,并且gridviww没有Replace方法.
请帮助我
我目前在c#.net

Dear sir ,
My Problem is hard, please solve them
I load a Csv file into a dataset and show them in datagridview

I want to replace a wild cards from all columns Like - replace(",","/");

But, datagridview does not select them and gridviww has no Replace method.
Please help me
I currently have work on c#.net

推荐答案

亲爱的兄弟! 您是正确的,但是在csv文件加载到datagridveiw中之前,我已经用replace命令引起了循环.但问题在于

请仔细查看

当我通过流读取器/写入器从csv文件中替换通配符时,在加载到数据集之前.csv文件的逗号分隔了所覆盖的值或将其替换为斜杠.因此,在此之后,数据集命令无法理解如何加载数据因为这些值会转换为斜杠.
亲爱的先生,您可以理解,我只想替换行和列中的通配符.这是我要更改的有缺陷数据."
请为我提供解决方案,因为这对我来说是一个很大的挑战/问题
Dear dude !
you are right , But I am already raised the loop with replace command before csv file load into the datagridveiw . but the problem is that

please see carefully

" when I m replace the wildcards from the csv file through stream reader/writer ,before load into the dataset .the coma of csv file that seprated the value coverted or replace into slash . so after that dataset commands can not understand that how load data because the values are converted into the slash.
dear sir , you can understand that I am only want to replace the wildcards from the rows and columns . This is defected data that I want to change" .
please provide a solution to me ,because this is a big chalange/ problem for me


这篇关于关于datagridview的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆