Hi,
Thanks for posting in the forum. As to your questions:
1. The Grid does not take Linq data types natively because the DLL is built against .NET 2.0, not .NET 3.5. However it is very easy to load a .NET 2.0 DataTable object from a .NET 3.5 Linq query. The basic idea is you can get a DbCommand from your Linq query, you can then run that DbCommand to fill a DataTable the "traditional way". Once you have the DataTable, you can bind the DataTable object to the Grid. The code will be something like this:
Code: C#
//Load a DataTable from Linq query
DataTable table = new DataTable();
//'q' is the Linq query, 'dc' is your DataContext object
DbCommand cmd = dc.GetCommand(q);
using (DbConnection conn = cmd.Connection)
{
conn.Open();
using (DbDataReader reader = cmd.ExecuteReader())
{
table.Load(reader);
}
}
//Bind the DataTable to the Grid
Grid1.DataSource = table;
Grid1.DataBind();
2. No. The Grid license does not cover MaskedEdit control. So if you want to use them both, you will need a suite license (or you can purchase two separate licenses for Grid and MaskedEdit, but the cost is the same as suite license);
3. MaskedEdit does not automatically overwrite existing contents. So if the mask has a length of 5 and you have already typed 5 digits, it won't take any more digits. If you need to correct any digits, you can either use del to delete everything, or use backspace to delete the last digits. Please let us know if this is consistent with what you see;
Please feel free to let us know if you have any more questions.
Thanks!