Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
CellValuePresenter.FromCell() returns null while creating a dummy record at runtime
posted

I am using the following code which works fine when there is at least one row already created on XamDataGrid UI screen. But i would like to create a dummy row(assuming no rows on UI)at run time by using my data source collection and run the following code. In this scenario, the CellValuePresenter.FromCell() returns null. Please do suggest me a solution.

var comboEditor=(XamComboEditor)(CellValuePresenter.FromCell(((DataRecord)(XamGrid.Records[0])).Cells[field.Name]).Editor)
  if (comboEditor != null)
    {
       //...
    }