c# Infragistics ultragrid setfocus on cell

1 comment

Problem: We have a form with a ultragrid displaying values.

On the form is a button to add a new row to the grid.

When clicking it we want the new row to be activated and the first cell to be selected.

In this solution the button adds a row with empty values to the datasource.

So in this solution we:

1) sort grid on column "Key" ("Key" is the name of one of our columns)

myGrid.DisplayLayout.Bands[0].Columns["Key"].SortIndicator = SortIndicator.Ascending;

2)activate the new row, with the desired cell            


3) open the cell for edit

myGrid.PerformAction(UltraGridAction.EnterEditMode, false, false);

Posted via email from Henris blogg

1 comment :

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.