c# Infragistics ultragrid setfocus on cell
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
myGrid.Rows[0].Cells["Key"].Activate();
3) open the cell for edit
myGrid.PerformAction(UltraGridAction.EnterEditMode, false, false);
Posted via email from Henris blogg
Subscribe to:
Post Comments
(
Atom
)
Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries.
ReplyDeleteSelenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training
This post is so interactive and informative.keep update more information...
ReplyDeleteHadoop Training in Bangalore
Big Data Training in Bangalore
This post is so helpfull and interavtive.Keep updating with more informaion...
ReplyDeleteSalary Of Cyber Security
Cyber Security Terms
slot siteleri
ReplyDeletekralbet
betpark
tipobet
betmatik
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
O11DA
tütün sarma makinesi
ReplyDeletesite kurma
sms onay
binance hesap açma
İBMXM
شركة عزل خزانات بخميس مشيط sI6T5L4rEZ
ReplyDelete