sql - Convert Boolean To string In Datagridview? -
try dgrd.rows.clear() itdataset.clear() flt = "select * transview tracom = n'" & trim$(t10id.text) & "'" order traid" itdataset = generaldatamanager.inquiredata(itdataset, flt, "transview") if me.bindingcontext(itdataset, "transview").count > 0 integer = 0 itdataset.tables("transview").rows.count - 1 dim row string() = {itdataset.tables("transview").rows(i).item("traid"), itdataset.tables("transview").rows(i).item("sender"), itdataset.tables("transview").rows(i).item("recever"), itdataset.tables("transview").rows(i).item("travalue"), itdataset.tables("transview").rows(i).item("currnceyname"), itdataset.tables("transview").rows(i).item("tradt"), itdataset.tables("transview").rows(i).item("ofcename")} dgrd.rows.add(row) end if next txtgredtotal.text = dgrd.rowcount - 1 end if catch ex exception exit sub end try
i have boolean (itdataset.tables("transview").rows(i).item("trayesorno")) how can convert boolean string , add datagridview ?
you don't have convert string
. bind source column datagridviewtextboxcolumn
instead of default datagridviewcheckboxcolumn
. that, add text box column grid in designer , set datapropertyname
name of source column. there no new column created when bind , you'll see text "true" or "false" instead of check box.
Comments
Post a Comment