We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Accessing Individual Cell values in DataGrid

Thread ID:





1226 Oct 4,2002 12:47 PM UTC Dec 16,2002 12:18 PM UTC WinForms 1
Tags: FAQ
Asked On October 4, 2002 12:47 PM UTC

Greetings! I am looking for an easy way to access the individual cell values in a datagrid and store each one in a string variable to be used in an SQL Update Statement using VB.NET. Any ideas will be most helpful as I am in the learning process here. Sincerely, Randy

Replied On December 16, 2002 12:18 PM UTC

I can help you in giving you a way to access the data in a specific cell. Just try this and i think that your problem will be solved: // Create a cell DataGridCell cell = new DataGridCell(); // Give the row number and column number cell.RowNumber = 1; cell.ColumnNumber = 0; // Insert data in the cell myDataGrid[cell] = "Hello World"; // Retrieve data from the cell MessageBox.Show(myDataGrid[cell].ToString());


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon