终极数据网格:从initup()开始(col,row,0)不起作用 [英] Ultimate data grid : startedit (col,row,0) out of onsetup() does not work

查看:65
本文介绍了终极数据网格:从initup()开始(col,row,0)不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ultimate Grid Control。

我有一个网格,有不同的r / o和r / w单元格。

当网格第一次绘制时,

i希望用户进行第一次交互(击键)

为我的样本中的一个speciefic cell(2,2)调用beginit。(输入名称)



我尝试了什么:



直到现在我有了StartEdit (2,2,0);在OnSetup()的最后一行中单元格,

但在显示网格之前覆盖此命令

如果我调用StartEdit(2,2,0) ;在OnDClicked中,它工作正常,只需每次点击,编辑焦点都从单元格2x2开始。



如何才能修复此问题?

Im working with the Ultimate Grid Control.
I got a grid with has different r/o and r/w cells.
When the grid is first painted,
i want the User to have the first interaction (keystrokes)
to call startedit for a speciefic cell (2,2) in my sample.(to type in the name)

What I have tried:

Till now i have the StartEdit(2,2,0); Cell in the last line of OnSetup(),
but something "overrides" this command before the grid is shown
If i call the StartEdit(2,2,0); out of "OnDClicked", it works fine, just everytime i click, the edit"focus" starts in cell 2x2.

How can i get this fixed?

推荐答案

如果你在 OnSetup 下填充你的网格控件,那那就不是正确的doig方式

该事件用于配置网格控件,注册单元格类型等。



您应该在创建网格控件的父类中添加列和行



例如:

If you populate your grid control under OnSetup then that's not correct way of doig that
that event is used to configure grid control , register cell types etc..

you should add columns and rows in the parent class where you have created grid control

for example :
myGrid.Create()
myGrid.AddColumn()
myGrid.AddRow()
myGrid.StartEdit()





因为网格在之后就绪了OnSetup 已返回


这篇关于终极数据网格:从initup()开始(col,row,0)不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆