本文介绍了找不到Devex pressGridView RowClickEventArgs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个新 Devex pressGridView

我有一个开发电网在我的网页,我要处理的 RowClick事件这样的:

I have a Dev Grid in my webpage, and I want to handle the RowClick Event like:

private void GridView1_RowClick(object sender, RowClickEventArgs e)
{
    if(a row is selected)// how???
        Button1.Visible=true;
}

但是,当有一个错误:无法解析符号RowClickEventArgs,这是我第一次知道Devex preSS。所以我想如果我的 RowClickEventArgs 语法是错误的?我试图找到多次搜索谷歌的解决方案,但我仍然不能得到正确的事情。

But when it has an error: "cannot resolve symbol RowClickEventArgs", this is first time I know about Devexpress. So I wonder if my RowClickEventArgs syntax is wrong??? I've tried to find the solution by searching google for many times, but I still cannot get the right thing.

您可以给我一个正确的语法???

Can you give me a right syntax???

还有一个问题,我怎么能检查有没有选择任何行?

And one more question, how can I check " is there any row selected ?"

帮助!

推荐答案

因此​​,这将是这样的:

So it would be like this:

private void GridView1_Click(object sender, EventArgs e)
{
    System.Data.DataRow row = GridView2.GetDataRow(GridView2.FocusedRowHandle);
    if(row[0].ToString() == "")
    {
          //YOUR LOGIC
    }

}

GridView2是你的主要观点。

GridView2 is your main view.

这篇关于找不到Devex pressGridView RowClickEventArgs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 07:14