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.
Unfortunately, activation email could not send to your email. Please try again.

Datagrid Edit

Thread ID:





288 May 22,2002 07:13 AM May 22,2002 10:56 AM Windows Forms 1
Tags: FAQ
Asked On May 22, 2002 07:13 AM

Hi I have used an example from the FAQs to select the entire row when a single cell in the row is selected (inheriting from textboxcolumn) I am also using the following statement to display the value in a textbox tBox.Text =datagrid[datagrid.CurrentCell.RowNumber,4].ToString(); but the textbox is becoming readonly how do i modify this to allow the datagrid to take a value from the text box and insert it into a certain cell thanks for your help

Clay Burch [Syncfusion]
Replied On May 22, 2002 10:56 AM

In the sample from the FAQ, I dropped a button and a textbox on the form. Then add this button handler. The code took the contents of the textbox and place then into the datagrid at 2,1. private void button1_Click(object sender, System.EventArgs e) { this.dataGrid1[2, 1] = this.textBox1.Text; } So, in your case, are the changes not showing in the datagrid? Or, are they showing in the datagrid, but are not getting back to your dataset?


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.

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.