如何在c#中绑定超级网格 [英] how to bind supergrid in c#

查看:57
本文介绍了如何在c#中绑定超级网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

using(DataClasses1DataContext db=new DataClasses1DataContext())
{
    SuperGrid1.DataBindings = db.StudentInfoTestings.Select(i => new { i.StudFirstName, i.StudLastName, i.StudContact, i.StudEmail, i.StudPass }).ToList();
}



如何在c#.net中绑定SuperGrid


How to bind SuperGrid in c#.net

推荐答案

尝试使用..

Try use..
using(DataClasses1DataContext db=new DataClasses1DataContext())
{
    SuperGrid1.DatSource = db.StudentInfoTestings.Select(i => new { i.StudFirstName, i.StudLastName, i.StudContact, i.StudEmail, i.StudPass }).ToList();
SuperGrid1.DataBind();

}


这篇关于如何在c#中绑定超级网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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