DataGridViewButtonCell.GetValue(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the text associated with the button.
protected:
override System::Object ^ GetValue(int rowIndex);
protected override object GetValue (int rowIndex);
protected override object? GetValue (int rowIndex);
override this.GetValue : int -> obj
Protected Overrides Function GetValue (rowIndex As Integer) As Object
- rowIndex
- Int32
The index of the cell's parent row.
The value of the DataGridViewButtonCell or the Text value of the owning column if UseColumnTextForButtonValue is true
.
This method is useful to retrieve the text of a cell in a shared row, which cannot store cell values locally and remain shared. You must pass in the actual row index because shared rows have indexes of -1. For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.
Produk | Versi |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: