Answer the question
In order to leave comments, you need to log in
Deleting a row in a DataGrid?
I am learning C#. The question arose, how to remove a row from the DataGrid?
public class Wrapper
{
public List<ApiFormatGetAllPerson> apidata { get; set; }
}
public class ApiFormatGetAllPerson
{
public string id { get; set; }
public string name { get; set; }
public string datebirth { get; set; }
public string card { get; set; }
public string email { get; set; }
public string phone { get; set; }
}
var js = "{\"ApiData\":" + json + "}";
Wrapper w = new JavaScriptSerializer().Deserialize<Wrapper>(js);
dg.ItemsSource = w.apidata;
int i = dg.SelectedIndex;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question