Support Portal

for ProcessRobot and WinAutomation

Start a new topic

Convert DataGrid Contents to DataTable


Extracting the contents of a UI DataGridView produces a single Text variable containing all the data in a specific format. This Process converts this Text format into a DataTable, which can be used for easier access and manipulation of the data.

Note that it is quite possible for the format to be different, depending on the application which contains the DataGridView - therefore, some tweaks may be necessary in order for this Process to function properly in every scenario.


try this: 
da = new DataAdapter(); 
dt = new DataTable(); 
dt.Locale = System.Globalization.CultureInfo.InvariantCulture; 
BindingSource bs = new BindingSource(); 
bs.DataSource = dt; 
dataGridView.DataSource = bs; for more information you can refer data grid content

here is no direct method to convert this to a DataTable from the DataGrid element. If you wanted to do this manually, you would have to create an instance of the DataTable, then create the rows from the Items in the DataGrid using a loop. You have to loop on DataGrid and add item to Datatable.

apache spark online training

I think to create a data table. we can use bootstrap data grid format to put on this. along with that html will be included. 

it is good to have ui online training 

This Process converts this Text format into a DataTable, which can be used for easier access and manipulation of the data.

It's a very informative blog thanks for sharing with us.

Power bi training

Angular Traning

Recatjs Training

Nodejs Course

Hello, Thanks for your Awesome post! I quite Satisfied reading it, you are a good author.I will Make sure to bookmark your blog and definitely will come back from now on. I want to encourage that you continue your great job, have a nice day.

Power Bi Training In Hyderabad

Power Bi Online Training

Amazing Blog. Keep sharing such a worthy information..

Google Cloud Online Training

Google Cloud Online Course

Hi,thanks for the is very informative and usefull..i have learned something new..keep up the good work and it will be usefull for everyone.. 

java training in chennai

With significant experience in software development and some knowledge of AWS platform, you can apply for different AWS roles. AWS training in Chennai | Certification | AWS Online Training CourseAlso, AWS certification will help you bring your career one level up as a cloud developer.

Login or Signup to post a comment