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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Accessing Individual Cell values in DataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

1226 Oct 4,2002 12:47 PM UTC Dec 16,2002 12:18 PM UTC WinForms 1
loading
Tags: FAQ
Randy
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

Oussax
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());

CONFIRMATION

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.

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

;