To download our product please visit the following link:
Cant resolve a function
I am developing a C# MVVM App, and am trying to run my view's code when I click the on a column on a datagrid.
What I have done so far is create a method on the ViewModel:
private void DataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
{
string b = DataGridView.Rows[e.RowIndex].Cells[0].Value.ToString();
MessageBox.Show(b);
}
My view, where the column in question is declared, is empty at the moment, and when I run the app I get the following error:
Cannot implicitly convert type 'void' to 'object'. An explicit conversion exists (are you missing a cast?)
I am using the DataGridView from the toolbox, in Visual Studio.
A:
If you are using the DataGridView with XAML, you can wire up the event in the DataGridView.XAML like so: ac619d1d87
Related links:
Comments