I'm populating a C# DataGrid with some values, and I'd like to retrieve a value from a cell when I click on that. How do I go about doing that with the .NET 1.1 Framework?
datagridview1 is not available in .net1.1
only for windows applications
I'm populating a C# DataGrid with some values, and I'd like to retrieve a value from a cell when I click on that. How do I go about doing that with the .NET 1.1 Framework?
datagridview1 is not available in .net1.1
only for windows applications
Does the following work:
string strCell = (string)dataGridView1.CurrentCell.Value;
If you are talking about a web/ASP.Net 1.1 DataGrid:
myDataGrid.Items
to get a rowrow.Cells[x]
to get a column in that row(TextBox)cell.FindControl("TextBox1")
to get a control inside the cellFor more info, see Accessing a Control’s Value from DataGrid in ASP.NET