Cannot implicitly convert type 'int' to 'string'

前端 未结 4 1220
情话喂你
情话喂你 2021-01-28 01:26

My code:

public void FillMaxBankCode()
{
    try
    {
        DataSet ds = new DataSet();
        ds = bol.SelectMaxBankCode();
        string j = ds.Tables[0].         


        
4条回答
  •  我在风中等你
    2021-01-28 01:48

    public void FillMaxBankCode()
            {
                try
                {
                    DataSet ds = new DataSet();
                    ds = bol.SelectMaxBankCode();
                    string j = ds.Tables[0].Rows[0].ToString();
                    txtbankid.Text = j;
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
    

提交回复
热议问题