HOME | SOLUTIONS | INDUSTRIES | SERVICES | ABOUT US | NEWS & EVENTS | SUPPORT CENTER | CONTACT

 
Product Documentation
Dovetail SelfService
Knowledge Base
Support Forums
Employee Blogs
Contact Us

Databinding with ClarifyGeneric objects (Article # 179)

View products that this article applies to.

Problem:

When creating ASP.NET or Windows Forms applications is can be very handy to use .NET's databinding capabilites. This solution will walk you through a basic example of populating a ClarifyGeneric add using the underlying DataSet object in a databinding scenario.

Resolution:

Below is a C# example of populating and using a ClarifyGeneric as a DataSource of a DataGrid control.

//Create and populate a generic for the case object
ClarifyDataSet ds = new ClarifyDataSet( session );
ClarifyGeneric g = ds.CreateGeneric( "case" );
g.AppendFilter("id_number", StringOps.Equals, "312");  //filter according to your database
g.Query()

//get access to the underlying System.Data.DataSet object for your databinding needs.
DataGrid1.DataSource = ds.Dataset;

Applies To:

  • Dovetail SDKDovetail Software Development Kit for Clarify

Copyright © 2008 Dovetail Software, Inc. All rights reserved.

 

support center | blogs | terms & conditions | contact