需要用户双击RadGrid的行的单元格值 [英] Need the value of cell of the row on which user double click on RadGrid

查看:57
本文介绍了需要用户双击RadGrid的行的单元格值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我们的应用程序中,我们的功能  用户  double 点击  任何  Rad-grid 然后该行变为可编辑模式下。所以现在我们要求 用户  double 点击    可编辑模式后, 行该控件必须自动聚焦。 
所以我需要 > double 点击 set on 控制 该行可编辑模式下。所以 任何事件 Rad-提供此功能的网格。

任何建议都会有所帮助。

对于示例如果 i 点击 ' s RateType列那么可编辑模式下的RateType下拉必须是自动聚焦的。

解决方案

你可以使用DataGridView事件< b> CellBeginEdti



 私人  Sub  DataGridView1_CellBeginEdit( ByVal  sender  As  对象 ByVal  e  As  System.Windows.Forms.DataGridViewCellCancelEventArgs)< span class =code-keyword>句柄 DataGridView1.CellBeginEdit 
' 在这里,您可以在可编辑模式下编写哪一列
结束 Sub < /跨度>


In our application we have functionality that when user double click on any row of Rad-grid then that row become in editable mode. so now we have requirement that when user double click on a specific column of that row then after coming in editable mode that control must be auto focused.
So i need the value of cell on which it is double clicked to set the focus on that control when that row comes in editable mode. So is there any event of Rad-grid which provides this functionality.

Any suggestion will be helpful.

For Example if i double click on row's RateType column then the RateType Drop Down which comes in editable mode must be auto focused.

解决方案

you can use the DataGridView event CellBeginEdti

Private Sub DataGridView1_CellBeginEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles DataGridView1.CellBeginEdit
'Here you can write the which column like to in editable mode
    End Sub


这篇关于需要用户双击RadGrid的行的单元格值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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