Grid View Row. Set Values(Object) Method
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.
Sets the values of the row's cells.
public: bool SetValues(... cli::array <System::Object ^> ^ values);
public bool SetValues (params object values);
member this.SetValues : obj -> bool
Public Function SetValues (ParamArray values As Object()) As Boolean
One or more objects that represent the cell values in the row.
true if all values have been set; otherwise,
This method is called when the associated DataGridView is operating in virtual mode.
This row is a shared row.
values parameter represents a variable number of arguments used to populate cell values in the row. These values can be passed to this method as multiple, individual arguments or as members of a single Array. Because the values are expected to be instances of type Object, however, if you pass in an array of value-type values (such as Int32 values), this method will treat the array as a single object and assign it to a single cell. To avoid this behavior, you must cast a value-type array to an Object array or pass in multiple values as multiple arguments.
If there are more values in the
values list than there are cells to be initialized, this method ignores the extra values and returns
false. This method also returns
false if any of the specified values cannot be set.
If there are fewer values than there are cells, the remaining unmatched cells retain their current values.