winform散分帖!!寻找会 datagridview 方面的朋友,顶者有分
在datagridview中,我添加新行的时候,有四列数据 
 title   wholesaleprice      price      retailprice      
 如果title我没有输入数据,去输入price的时候,就把光标指向title   
 其次是输入wholesaleprice   然后是price   最后是retailprice   
 也就是说要按顺序输入数据   
 如果不是就报错   
 该如何解决,烦了一天了
------解决方案--------------------我帮你顶!!!
------解决方案--------------------我帮你顶!!!
------解决方案--------------------好像有个属性能解决这个问题  你好好看看datagridview的属性 看看是不是设置的有错误
------解决方案--------------------路过
------解决方案--------------------那顶一下啦~
------解决方案--------------------private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) 
         { 
             string title = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); 
             if ( " " == title || null == title) 
             { 
                 dataGridView1.CurrentCell = dataGridView1[0, e.RowIndex]; 
             } 
         }
------解决方案--------------------顶一下
------解决方案--------------------顶
------解决方案--------------------新的一行没有添加成功,就用来做判断?   
 帮顶.!!!
------解决方案--------------------JF而来.
------解决方案--------------------顶,加入学习