我使用此代码生成数据并将其输出到gridview中
string sql = "Sql Query";
string sqlCredit= "Sql Query";
string sqlCreditPayment = "Sql Query";
SqlDataAdapter da = new SqlDataAdapter();
DataSet ds = new DataSet();
ds.EnforceConstraints = false;
ds.DataSetName = "Receivables";
ds.Tables.Add((con.ShowResult(sql, ref da)).Tables[0].Copy());
ds.Tables[0].TableName = "dtReceivables";
ds.Tables.Add((con.ShowResult(sqlCredit, ref da)).Tables[0].Copy());
ds.Tables[1].TableName = "dtCredit";
ds.Tables[1].Columns[1].ColumnMapping = MappingType.Hidden;
ds.Tables[1].Columns[7].ColumnMapping = MappingType.Hidden;
ds.Tables.Add((con.ShowResult(sqlCreditPayment, ref da)).Tables[0].Copy());
ds.Tables[2].TableName = "dtCreditPayment";
ds.Tables[2].Columns[0].ColumnMapping = MappingType.Hidden;
DataRelation dr0 = new DataRelation("CreditList", ds.Tables[0].Columns["Id"], ds.Tables[1].Columns["DocSupplierId"]);
ds.Relations.Add(dr0);
DataRelation dr1 = new DataRelation("CreditPaymentList", ds.Tables[1].Columns["Id"], ds.Tables[2].Columns["SourceId"]);
ds.Relations.Add(dr1);
slipDashBoard.DataSource = ds.Tables["dtReceivables"];
slipDashBoard.ForceInitialize();
gridView1.BestFitColumns();
Run Code Online (Sandbox Code Playgroud)
伙计们.请帮忙.当我点击gridview的孩子时,我希望实现这样的目标.thnx提前

我试图验证我的网站,我得到以下错误
没有属性"属性"
<meta property="og:title" content="Free Sms" />
Run Code Online (Sandbox Code Playgroud)
没有属性"allowTransparency"
…w:hidden; width:450px; height:21px;" allowTransparency="true">Facebook</iframe>
Run Code Online (Sandbox Code Playgroud)
没有属性"占位符"
…"search" type="text" placeholder="SEARCH" value="" class="searchInp …
Run Code Online (Sandbox Code Playgroud)
首先我的代码有这个,我得到13个错误.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Run Code Online (Sandbox Code Playgroud)
将代码更改为此可以减少我的错误.但是我得到了3个错误.为什么?任何指南如何解决这个问题?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml"
xml:lang="en" lang="en">
Run Code Online (Sandbox Code Playgroud)
完成
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml"
xml:lang="en" lang="en">
<head>
<title>Welcome to mysite</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="keywords" content="Social, Programming" /> …Run Code Online (Sandbox Code Playgroud) 我有以下代码可以根据屏幕的大小缩放图像,这样它就不会被破坏。我的问题是当我把这个函数进行转换时,我总是得到这个错误
java.lang.IllegalStateException: 变换比例改变了输入位图但未能回收原始。
@SuppressWarnings("deprecation")
@Override
public Bitmap transform(Bitmap bitmap) {
if (bitmap != null) {
if (bitmap.getWidth() < MAX_WIDTH) {
bitmap = this.scaledDownBitmap(bitmap);
}
boolean flag = true;
int deviceWidth = ((Activity)this.context).getWindowManager().getDefaultDisplay().getWidth();
int deviceHeight = ((Activity)this.context).getWindowManager().getDefaultDisplay().getHeight();
int bitmapHeight = bitmap.getHeight(); // 563
int bitmapWidth = bitmap.getWidth(); // 900
// aSCPECT rATIO IS Always WIDTH x HEIGHT rEMEMMBER 1024 x 768
if (bitmapWidth > deviceWidth) {
flag = false;
// scale According to WIDTH
int scaledWidth = deviceWidth;
int scaledHeight = …Run Code Online (Sandbox Code Playgroud) 有谁知道任何图书馆,如何实现这一点或任何巫术已经为此做出.
带有上下文菜单的列表视图?我不想使用具有长按上下文菜单的那个.
谢谢
