如何将文本框中填充的数据添加到dbgrid [英] how to add data filled in the textboxes to the dbgrid
本文介绍了如何将文本框中填充的数据添加到dbgrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
pls发送有关如何将文本框中填充的数据添加到dbgrid的代码.
解决方案
如果您提供了精确的网格结构,那么我会给出U的线索但现在
试试这个
dbgrid.Rows = dbgrid.Rows + 1 dbgrid.TextMatrix( 0 , 0 )=修剪(txtText1.Text) dbgrid.TextMatrix( 0 , 1 )=修剪(txtText2.Text) dbgrid.TextMatrix( 0 , 2 )=修剪(txtText3.Text)
pls send code for how to add data filled in the textboxes to the dbgrid
解决方案
If You Provide The Exact Grid Structure Then I would Have Given U The clue but for now
Try This
dbgrid.Rows = dbgrid.Rows + 1 dbgrid.TextMatrix(0, 0) = Trim(txtText1.Text) dbgrid.TextMatrix(0, 1) = Trim(txtText2.Text) dbgrid.TextMatrix(0, 2) = Trim(txtText3.Text)
这篇关于如何将文本框中填充的数据添加到dbgrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文