Set first row selected after datagrid load


How can I set the first row selected after the Datagrid load?

Is there an even that identifies the data of Datagrid have been completely loaded?

Thank you.

You can use the approach from this demo:

Hi @enchev

I don't know if I was doing a right way, but there was a building error. Could you please tell me how to solve that? Thank you so much.

  1. set a list to a property
  2. add an attribute to the grid
  3. a building error

You will need to declare in Load event for selectedKeyValue as IList

IList<Tcmaps.Models.Tcmdb.KeyValue> selectedKeyValue ;

Hi @Vinod_Pillai
Yes, I need a IList declaration instead of List.

Thank you so much for your help.