嗨,朋友们,我收到以下错误,请尽快说出解决方案... [英] hi frnds i am getting the following errors please say the solution soon ...
问题描述
嗨Frnds,
我也遇到了同样的错误,然后说出如何创建扩展datagridview类的自定义datagridview以及如何设置Caption文本的属性
Hi Frnds,
me too getting same error then say how to create a custom datagridview extending the datagridview class and how to set the property of Caption text
dataGridView1.CaptionText= dataGridView1.DataMember;
{
if (dataGridView1.CaptionText =="")
dataGridView1.CaptionText ="authors DataGrid";
}
在上面的编码部分中,我得到了错误提示,因为(``System.Windows.Forms.DataGridView''不包含``CaptionText''的定义,也没有扩展方法``CaptionText''接受类型为''的第一个参数可以找到System.Windows.Forms.DataGridView''(您是否缺少using指令或程序集引用?)
请说出正确的解决方案Frnds.
in the above coding part i am getting error as (''System.Windows.Forms.DataGridView'' does not contain a definition for ''CaptionText'' and no extension method ''CaptionText'' accepting a first argument of type ''System.Windows.Forms.DataGridView'' could be found (are you missing a using directive or an assembly reference?)
Please say the proper solution Frnds.
推荐答案
CaptionText属性在DataGridView中不可用.仅在DataGrid中可用
CaptionText Property is not available in DataGridView. that is only avalible in DataGrid
这篇关于嗨,朋友们,我收到以下错误,请尽快说出解决方案...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!