System.Windows.Forms.DataGridViewRowCollection.IndexOf(System.Windows.Forms.DataGridViewRow)

Here are the examples of the csharp api class System.Windows.Forms.DataGridViewRowCollection.IndexOf(System.Windows.Forms.DataGridViewRow) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: Urbanization
Source File: EvaluationForm.cs
View license
private static void AddLabelValue(string label, string value, DataGridView gridView)
        {
            gridView.BeginInvoke(new MethodInvoker(() =>
            {
                var match = gridView.Rows.Cast<DataGridViewRow>().FirstOrDefault(x => x.Cells[0].Value.ToString() == label);
                if (match != null)
                {
                    match.Cells[1].Value = value;
                    gridView.UpdateCellValue(1, gridView.Rows.IndexOf(match));
                }
                else
                {
                    gridView.Rows.Add(label, value);
                }
            }));
        }

2. Example

Project: QTTabBar
Source File: FileHashComputerForm.cs
View license
public void ShowFileHashForm(string[] paths) {
            if(!fCancellationPending) {
             /n ..... /n //View Source file for more details /n }